home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: cforms.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
99%
| dexvert
| Texinfo Document (document/texInfo)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| TeX document text
| default
| |
98%
| file
| LaTeX document, ASCII text
| default
| |
100%
| TrID
| LaTeX 2e document (with rem)
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 4c 41 54 45 58 20 | 44 6f 63 75 6d 65 6e 74 |% LATEX |Document|
|00000010| 61 74 69 6f 6e 20 66 6f | 72 20 43 46 6f 72 6d 73 |ation fo|r CForms|
|00000020| 0a 25 20 42 79 20 4c 61 | 72 73 20 42 65 72 6e 74 |.% By La|rs Bernt|
|00000030| 7a 6f 6e 0a 25 20 40 28 | 23 29 20 63 66 6f 72 6d |zon.% @(|#) cform|
|00000040| 73 2e 74 65 78 2c 76 20 | 31 2e 31 30 20 31 39 39 |s.tex,v |1.10 199|
|00000050| 33 2f 30 37 2f 32 31 20 | 30 30 3a 30 32 3a 34 34 |3/07/21 |00:02:44|
|00000060| 20 6c 61 73 73 65 20 45 | 78 70 0a 25 0a 5c 6e 65 | lasse E|xp.%.\ne|
|00000070| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 73 79 6e 6f 70 73 |wcommand|{\synops|
|00000080| 79 73 7d 5b 31 5d 7b 5c | 76 65 72 62 21 5c 6e 65 |ys}[1]{\|verb!\ne|
|00000090| 77 6c 69 6e 65 0a 53 79 | 6e 6f 70 73 79 73 3a 20 |wline.Sy|nopsys: |
|000000a0| 7b 23 31 7d 21 0a 7d 0a | 0a 5c 64 6f 63 75 6d 65 |{#1}!.}.|.\docume|
|000000b0| 6e 74 73 74 79 6c 65 7b | 61 72 74 69 63 6c 65 7d |ntstyle{|article}|
|000000c0| 0a 5c 74 69 74 6c 65 7b | 43 46 6f 72 6d 73 20 76 |.\title{|CForms v|
|000000d0| 0a 5c 69 6e 70 75 74 20 | 70 61 74 63 68 6c 65 76 |.\input |patchlev|
|000000e0| 65 6c 0a 7d 0a 5c 61 75 | 74 68 6f 72 7b 4c 61 72 |el.}.\au|thor{Lar|
|000000f0| 73 20 42 65 72 6e 74 7a | 6f 6e 2c 20 45 2d 4d 61 |s Berntz|on, E-Ma|
|00000100| 69 6c 3a 20 6c 61 62 40 | 63 61 70 2e 73 65 7d 0a |il: lab@|cap.se}.|
|00000110| 5c 62 65 67 69 6e 7b 64 | 6f 63 75 6d 65 6e 74 7d |\begin{d|ocument}|
|00000120| 0a 5c 6d 61 6b 65 74 69 | 74 6c 65 0a 0a 5c 73 65 |.\maketi|tle..\se|
|00000130| 63 74 69 6f 6e 7b 49 6e | 74 72 6f 64 75 63 74 69 |ction{In|troducti|
|00000140| 6f 6e 7d 0a 0a 09 43 46 | 6f 72 6d 73 20 69 73 20 |on}...CF|orms is |
|00000150| 61 20 66 6f 72 6d 75 6c | 61 72 20 6d 61 6e 61 67 |a formul|ar manag|
|00000160| 65 72 20 66 6f 72 20 62 | 75 69 6c 64 69 6e 67 20 |er for b|uilding |
|00000170| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 74 6f 20 |applicat|ions to |
|00000180| 62 65 20 75 73 65 64 20 | 66 6f 72 0a 09 6d 61 6e |be used |for..man|
|00000190| 79 20 74 79 70 65 73 20 | 6f 66 20 74 65 72 6d 69 |y types |of termi|
|000001a0| 6e 61 6c 73 20 74 68 6f | 75 67 68 20 69 74 20 75 |nals tho|ugh it u|
|000001b0| 73 65 73 20 74 68 65 20 | 7b 5c 65 6d 20 63 75 72 |ses the |{\em cur|
|000001c0| 73 65 73 7d 20 6c 69 62 | 72 61 72 79 2e 0a 09 43 |ses} lib|rary...C|
|000001d0| 46 6f 72 6d 73 20 69 73 | 20 62 75 69 6c 74 20 75 |Forms is| built u|
|000001e0| 70 20 62 79 20 61 20 6c | 61 6e 67 75 61 67 65 20 |p by a l|anguage |
|000001f0| 74 68 61 74 20 63 6f 6e | 73 69 73 74 73 20 6f 66 |that con|sists of|
|00000200| 20 74 68 65 20 6f 62 6a | 65 63 74 73 3a 20 6d 6f | the obj|ects: mo|
|00000210| 64 75 6c 65 73 2c 0a 09 | 70 69 63 74 75 72 65 73 |dules,..|pictures|
|00000220| 2c 20 66 69 65 6c 64 73 | 2c 20 6c 69 74 65 72 61 |, fields|, litera|
|00000230| 6c 73 20 61 6e 64 20 65 | 76 65 6e 74 73 2e 20 54 |ls and e|vents. T|
|00000240| 68 69 73 20 6c 61 6e 67 | 75 61 67 65 20 69 73 20 |his lang|uage is |
|00000250| 74 68 65 20 63 6f 6d 70 | 69 6c 65 64 0a 09 77 69 |the comp|iled..wi|
|00000260| 74 68 20 61 20 63 6f 6d | 70 69 6c 65 72 20 63 61 |th a com|piler ca|
|00000270| 6c 6c 65 64 20 7b 5c 65 | 6d 20 63 66 63 7d 20 61 |lled {\e|m cfc} a|
|00000280| 6e 20 61 6c 6c 20 63 6f | 6d 70 69 6c 65 64 20 66 |n all co|mpiled f|
|00000290| 69 6c 65 73 20 61 72 65 | 20 66 69 6e 61 6c 6c 79 |iles are| finally|
|000002a0| 0a 09 6c 69 6e 6b 65 64 | 20 77 69 74 68 20 61 20 |..linked| with a |
|000002b0| 6c 69 6e 6b 65 72 20 63 | 61 6c 6c 65 64 20 7b 5c |linker c|alled {\|
|000002c0| 65 6d 20 63 66 6c 7d 2e | 0a 0a 09 41 6e 20 61 70 |em cfl}.|...An ap|
|000002d0| 70 6c 69 63 61 74 69 6f | 6e 20 69 73 20 62 75 69 |plicatio|n is bui|
|000002e0| 6c 74 20 62 79 20 6f 6e | 65 20 6f 72 20 6d 6f 72 |lt by on|e or mor|
|000002f0| 65 20 6d 6f 64 75 6c 65 | 73 20 74 68 61 74 20 63 |e module|s that c|
|00000300| 6f 6e 74 61 69 6e 73 20 | 6f 6e 65 20 6f 72 20 6d |ontains |one or m|
|00000310| 6f 72 65 0a 09 70 69 63 | 74 75 72 65 73 20 74 68 |ore..pic|tures th|
|00000320| 61 74 20 68 61 6e 64 6c | 65 73 20 74 68 65 20 76 |at handl|es the v|
|00000330| 61 72 69 6f 75 73 20 66 | 75 6e 63 74 69 6f 6e 73 |arious f|unctions|
|00000340| 20 69 6e 20 74 68 65 20 | 61 70 70 6c 69 63 61 74 | in the |applicat|
|00000350| 69 6f 6e 2e 0a 09 45 61 | 63 68 20 70 69 63 74 75 |ion...Ea|ch pictu|
|00000360| 72 65 20 6d 61 79 20 63 | 6f 6e 74 61 69 6e 20 61 |re may c|ontain a|
|00000370| 6e 79 20 6e 75 6d 62 65 | 72 20 6f 66 20 66 69 65 |ny numbe|r of fie|
|00000380| 6c 64 73 20 61 6e 64 20 | 74 65 78 74 20 6c 69 74 |lds and |text lit|
|00000390| 65 72 61 6c 0a 09 74 68 | 61 74 20 64 65 73 63 72 |eral..th|at descr|
|000003a0| 69 62 65 73 20 74 68 65 | 20 61 70 70 65 61 72 61 |ibes the| appeara|
|000003b0| 6e 63 65 20 6f 66 20 74 | 68 65 20 70 69 63 74 75 |nce of t|he pictu|
|000003c0| 72 65 2e 0a 0a 09 46 69 | 65 6c 64 73 20 61 72 65 |re....Fi|elds are|
|000003d0| 20 64 65 66 69 6e 65 64 | 20 62 79 20 74 68 65 69 | defined| by thei|
|000003e0| 72 20 6e 61 6d 65 20 61 | 6e 64 20 61 72 65 20 73 |r name a|nd are s|
|000003f0| 68 61 70 65 64 20 62 79 | 20 74 68 65 69 72 20 74 |haped by| their t|
|00000400| 79 70 65 2c 0a 09 73 69 | 7a 65 2c 20 73 70 65 63 |ype,..si|ze, spec|
|00000410| 69 61 6c 20 61 74 74 72 | 69 62 75 74 65 73 20 61 |ial attr|ibutes a|
|00000420| 6e 64 20 65 76 65 6e 74 | 20 68 61 6e 64 6c 69 6e |nd event| handlin|
|00000430| 67 20 66 75 6e 63 74 69 | 6f 6e 73 2e 0a 0a 09 43 |g functi|ons....C|
|00000440| 46 6f 72 6d 73 20 6d 61 | 79 20 62 65 20 69 6e 74 |Forms ma|y be int|
|00000450| 65 72 6d 69 78 65 64 20 | 77 69 74 68 20 43 2d 63 |ermixed |with C-c|
|00000460| 6f 64 65 20 6d 6f 64 75 | 6c 65 73 20 69 6e 20 61 |ode modu|les in a|
|00000470| 6e 79 20 77 61 79 2e 0a | 0a 0a 5c 73 65 63 74 69 |ny way..|..\secti|
|00000480| 6f 6e 7b 4c 61 6e 67 75 | 61 67 65 20 64 65 73 63 |on{Langu|age desc|
|00000490| 72 69 70 74 69 6f 6e 7d | 0a 0a 09 54 68 65 20 6c |ription}|...The l|
|000004a0| 61 6e 67 75 61 67 65 20 | 69 73 20 6e 6f 74 20 63 |anguage |is not c|
|000004b0| 61 73 65 20 73 65 6e 73 | 69 74 69 76 65 20 65 78 |ase sens|itive ex|
|000004c0| 65 70 74 20 74 68 6f 6f | 73 65 20 70 61 72 74 73 |ept thoo|se parts|
|000004d0| 0a 09 74 68 61 74 20 61 | 72 65 20 70 75 72 65 20 |..that a|re pure |
|000004e0| 43 2d 63 6f 64 65 20 28 | 69 6e 20 65 76 65 6e 74 |C-code (|in event|
|000004f0| 73 2d 20 61 6e 64 20 63 | 63 6f 64 65 20 73 74 61 |s- and c|code sta|
|00000500| 74 65 6d 65 6e 74 73 29 | 2e 0a 0a 09 0a 5c 73 75 |tements)|.....\su|
|00000510| 62 73 65 63 74 69 6f 6e | 7b 56 69 65 77 70 6f 72 |bsection|{Viewpor|
|00000520| 74 73 7d 0a 0a 09 54 6f | 20 63 72 65 61 74 65 20 |ts}...To| create |
|00000530| 61 20 70 69 63 74 75 72 | 65 20 79 6f 75 20 66 69 |a pictur|e you fi|
|00000540| 72 73 74 20 6e 65 65 64 | 20 74 6f 20 63 72 65 61 |rst need| to crea|
|00000550| 74 65 20 61 20 76 69 65 | 77 70 6f 72 74 2c 20 77 |te a vie|wport, w|
|00000560| 69 63 68 20 0a 09 64 65 | 73 63 72 69 62 65 73 20 |ich ..de|scribes |
|00000570| 74 68 65 20 73 69 7a 65 | 20 61 6e 64 20 70 6f 73 |the size| and pos|
|00000580| 69 74 69 6f 6e 20 6f 6e | 20 74 68 65 20 72 65 61 |ition on| the rea|
|00000590| 6c 20 73 63 72 65 65 6e | 20 77 68 65 72 65 20 74 |l screen| where t|
|000005a0| 68 65 20 70 69 63 74 75 | 72 65 0a 09 73 68 6f 75 |he pictu|re..shou|
|000005b0| 6c 64 20 61 70 70 65 61 | 72 2e 20 41 20 76 69 65 |ld appea|r. A vie|
|000005c0| 77 70 6f 72 74 20 69 73 | 20 64 65 66 69 6e 65 64 |wport is| defined|
|000005d0| 20 62 79 20 69 74 73 20 | 6e 61 6d 65 2c 20 77 69 | by its |name, wi|
|000005e0| 63 68 20 6c 61 74 65 72 | 20 73 68 6f 75 6c 64 0a |ch later| should.|
|000005f0| 09 62 65 20 72 65 66 65 | 72 65 6e 63 65 64 20 62 |.be refe|renced b|
|00000600| 79 20 74 68 65 20 70 69 | 63 74 75 72 65 2e 20 53 |y the pi|cture. S|
|00000610| 65 76 65 72 61 6c 20 70 | 69 63 74 75 72 65 73 20 |everal p|ictures |
|00000620| 6d 61 79 20 73 68 61 72 | 65 20 74 68 65 20 73 61 |may shar|e the sa|
|00000630| 6d 65 0a 09 76 69 65 77 | 70 6f 72 74 2e 0a 0a 09 |me..view|port....|
|00000640| 53 79 6e 74 61 78 20 66 | 6f 72 20 61 20 76 69 65 |Syntax f|or a vie|
|00000650| 77 70 6f 72 74 20 69 73 | 3a 0a 09 5c 62 65 67 69 |wport is|:..\begi|
|00000660| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|00000670| 20 20 20 20 56 49 45 57 | 50 4f 52 54 20 3c 6e 61 | VIEW|PORT <na|
|00000680| 6d 65 3e 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 |me> {. | |
|00000690| 20 20 50 4f 53 20 3c 63 | 6f 6c 75 6d 6e 3e 2c 20 | POS <c|olumn>, |
|000006a0| 3c 72 6f 77 3e 3b 0a 20 | 20 20 20 20 20 20 20 20 |<row>;. | |
|000006b0| 20 20 20 53 49 5a 45 20 | 3c 77 69 64 74 68 3e 2c | SIZE |<width>,|
|000006c0| 20 3c 68 65 69 67 68 74 | 3e 3b 0a 20 20 20 20 20 | <height|>;. |
|000006d0| 20 20 20 7d 0a 09 5c 65 | 6e 64 7b 76 65 72 62 61 | }..\e|nd{verba|
|000006e0| 74 69 6d 7d 0a 0a 09 45 | 78 61 6d 70 6c 65 3a 0a |tim}...E|xample:.|
|000006f0| 09 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00000700| 7d 0a 20 20 20 20 20 20 | 20 20 56 69 65 77 70 6f |}. | Viewpo|
|00000710| 72 74 20 73 74 64 73 63 | 72 65 65 6e 20 7b 0a 20 |rt stdsc|reen {. |
|00000720| 20 20 20 20 20 20 20 20 | 20 20 20 50 6f 73 20 31 | | Pos 1|
|00000730| 2c 31 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |,1;. | |
|00000740| 53 69 7a 65 20 38 30 2c | 20 32 34 3b 0a 20 20 20 |Size 80,| 24;. |
|00000750| 20 20 20 20 20 7d 0a 09 | 5c 65 6e 64 7b 76 65 72 | }..|\end{ver|
|00000760| 62 61 74 69 6d 7d 0a 0a | 0a 5c 73 75 62 73 65 63 |batim}..|.\subsec|
|00000770| 74 69 6f 6e 7b 43 43 6f | 64 65 7d 0a 09 54 68 65 |tion{CCo|de}..The|
|00000780| 20 43 43 6f 64 65 20 73 | 74 61 74 65 6d 65 6e 74 | CCode s|tatement|
|00000790| 20 69 6e 74 72 6f 64 75 | 63 65 73 20 61 20 43 2d | introdu|ces a C-|
|000007a0| 63 6f 64 65 20 62 6c 6f | 63 6b 20 74 68 61 74 20 |code blo|ck that |
|000007b0| 6d 61 79 20 63 6f 6e 74 | 61 69 6e 20 61 6e 79 0a |may cont|ain any.|
|000007c0| 09 63 6f 64 65 20 73 75 | 63 68 20 61 73 20 67 6c |.code su|ch as gl|
|000007d0| 6f 62 61 6c 20 76 61 72 | 69 61 62 6c 65 73 2c 20 |obal var|iables, |
|000007e0| 66 75 6e 63 74 69 6f 6e | 73 2c 20 70 72 65 70 72 |function|s, prepr|
|000007f0| 6f 63 65 73 73 6f 72 20 | 73 74 61 74 65 6d 65 6e |ocessor |statemen|
|00000800| 74 73 2e 0a 09 54 68 69 | 73 20 6d 65 61 6e 73 20 |ts...Thi|s means |
|00000810| 74 68 61 74 20 74 68 65 | 72 65 20 69 73 20 6e 6f |that the|re is no|
|00000820| 20 6e 65 65 64 20 74 6f | 20 68 61 76 65 20 73 65 | need to| have se|
|00000830| 70 61 72 61 74 65 64 20 | 66 6f 72 6d 2d 66 69 6c |parated |form-fil|
|00000840| 65 73 20 61 6e 64 0a 09 | 43 2d 66 69 6c 65 73 20 |es and..|C-files |
|00000850| 77 69 74 68 20 73 75 70 | 70 6f 72 74 20 66 75 6e |with sup|port fun|
|00000860| 63 74 69 6f 6e 73 2e 20 | 43 63 6f 64 65 73 20 6d |ctions. |Ccodes m|
|00000870| 61 79 20 6f 6e 6c 79 20 | 62 65 20 75 73 65 64 20 |ay only |be used |
|00000880| 69 6e 20 6f 75 74 65 72 | 0a 09 73 63 6f 70 65 73 |in outer|..scopes|
|00000890| 2c 20 69 2e 65 2e 20 6e | 6f 74 20 69 6e 73 69 64 |, i.e. n|ot insid|
|000008a0| 65 20 70 69 63 74 75 72 | 65 73 2c 20 6c 69 74 65 |e pictur|es, lite|
|000008b0| 72 61 6c 73 20 6f 72 20 | 66 69 65 6c 64 73 2e 0a |rals or |fields..|
|000008c0| 0a 09 53 79 6e 74 61 78 | 20 66 6f 72 20 43 63 6f |..Syntax| for Cco|
|000008d0| 64 65 20 69 73 3a 0a 20 | 20 20 20 20 20 20 20 5c |de is:. | \|
|000008e0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000008f0| 20 20 20 20 20 20 20 20 | 43 43 4f 44 45 20 7b 0a | |CCODE {.|
|00000900| 20 20 20 20 20 20 20 20 | 20 20 20 20 3c 41 6e 79 | | <Any|
|00000910| 20 43 20 63 6f 64 65 3e | 0a 20 20 20 20 20 20 20 | C code>|. |
|00000920| 20 7d 0a 20 20 20 20 20 | 20 20 20 5c 65 6e 64 7b | }. | \end{|
|00000930| 76 65 72 62 61 74 69 6d | 7d 0a 0a 09 45 78 61 6d |verbatim|}...Exam|
|00000940| 70 6c 65 3a 0a 20 20 20 | 20 20 20 20 20 5c 62 65 |ple:. | \be|
|00000950| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|00000960| 20 20 20 20 20 20 43 43 | 6f 64 65 20 7b 0a 20 20 | CC|ode {. |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 63 6c 65 61 6e 75 | | cleanu|
|00000980| 70 28 29 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |p(). | |
|00000990| 7b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |{. | |
|000009a0| 20 20 66 72 65 65 5f 61 | 6c 6c 5f 6d 65 6d 28 29 | free_a|ll_mem()|
|000009b0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|000009c0| 20 20 63 66 6f 72 6d 73 | 5f 65 6e 64 28 29 3b 0a | cforms|_end();.|
|000009d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000009e0| 65 78 69 74 28 29 3b 0a | 20 20 20 20 20 20 20 20 |exit();.| |
|000009f0| 20 20 20 20 7d 0a 20 20 | 20 20 20 20 20 20 7d 0a | }. | }.|
|00000a00| 20 20 20 20 20 20 20 20 | 5c 65 6e 64 7b 76 65 72 | |\end{ver|
|00000a10| 62 61 74 69 6d 7d 0a 0a | 0a 5c 73 75 62 73 65 63 |batim}..|.\subsec|
|00000a20| 74 69 6f 6e 7b 50 69 63 | 74 75 72 65 73 7d 0a 0a |tion{Pic|tures}..|
|00000a30| 09 41 20 70 69 63 74 75 | 72 65 20 69 73 20 77 68 |.A pictu|re is wh|
|00000a40| 61 74 20 73 68 6f 77 73 | 20 75 70 20 6f 6e 20 74 |at shows| up on t|
|00000a50| 68 65 20 74 65 72 6d 69 | 6e 61 6c 20 77 68 65 6e |he termi|nal when|
|00000a60| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|00000a70| 20 69 73 0a 09 72 75 6e | 6e 69 6e 67 2e 20 50 69 | is..run|ning. Pi|
|00000a80| 63 74 75 72 65 73 20 63 | 6f 6e 74 61 69 6e 73 20 |ctures c|ontains |
|00000a90| 66 69 65 6c 64 73 20 2d | 20 77 68 69 63 68 20 61 |fields -| which a|
|00000aa0| 72 65 20 70 6c 61 63 65 | 73 20 66 6f 72 20 69 6e |re place|s for in|
|00000ab0| 70 75 74 20 6f 72 0a 09 | 6f 75 74 70 75 74 2c 20 |put or..|output, |
|00000ac0| 6c 69 74 65 72 61 6c 73 | 20 2d 20 77 68 69 63 68 |literals| - which|
|00000ad0| 20 61 72 65 20 73 74 61 | 74 69 63 20 74 65 78 74 | are sta|tic text|
|00000ae0| 73 20 61 6e 64 20 65 76 | 65 6e 74 73 20 2d 0a 09 |s and ev|ents -..|
|00000af0| 65 76 65 6e 74 73 20 64 | 6f 65 73 6e 27 74 20 73 |events d|oesn't s|
|00000b00| 68 6f 77 20 62 75 74 20 | 64 65 66 69 6e 65 73 20 |how but |defines |
|00000b10| 43 2d 63 6f 64 65 20 66 | 75 6e 63 74 69 6f 6e 73 |C-code f|unctions|
|00000b20| 20 74 6f 20 62 65 20 63 | 61 6c 6c 65 64 20 77 68 | to be c|alled wh|
|00000b30| 65 6e 0a 09 63 65 72 74 | 61 69 6e 20 74 68 69 6e |en..cert|ain thin|
|00000b40| 67 73 20 68 61 70 70 65 | 6e 73 2e 20 45 76 65 6e |gs happe|ns. Even|
|00000b50| 74 73 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |ts speci|fied in |
|00000b60| 70 69 63 74 75 72 65 73 | 20 61 72 65 20 61 63 74 |pictures| are act|
|00000b70| 75 61 6c 6c 79 0a 09 75 | 73 65 64 20 62 79 20 66 |ually..u|sed by f|
|00000b80| 69 65 6c 64 73 2c 20 62 | 75 74 20 74 68 65 79 20 |ields, b|ut they |
|00000b90| 61 72 65 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |are auto|maticall|
|00000ba0| 79 20 73 70 65 63 69 66 | 69 65 64 20 66 6f 72 20 |y specif|ied for |
|00000bb0| 61 6c 6c 20 66 69 65 6c | 64 73 0a 09 69 6e 20 74 |all fiel|ds..in t|
|00000bc0| 68 61 74 20 70 69 63 74 | 75 72 65 73 20 28 75 6e |hat pict|ures (un|
|00000bd0| 6c 65 73 73 20 73 70 65 | 63 69 66 69 63 61 6c 6c |less spe|cificall|
|00000be0| 79 20 74 75 72 6e 65 64 | 20 6f 66 66 29 2c 20 69 |y turned| off), i|
|00000bf0| 6e 20 6f 74 68 65 72 20 | 77 6f 72 6c 64 73 20 61 |n other |worlds a|
|00000c00| 0a 09 64 65 66 61 75 6c | 74 20 65 76 65 6e 74 20 |..defaul|t event |
|00000c10| 66 6f 72 20 61 6c 6c 20 | 66 69 65 6c 64 73 2e 0a |for all |fields..|
|00000c20| 0a 09 41 20 70 69 63 74 | 75 72 65 73 20 69 73 20 |..A pict|ures is |
|00000c30| 64 65 66 69 6e 65 64 20 | 62 79 20 69 74 73 20 6e |defined |by its n|
|00000c40| 61 6d 65 2c 20 61 6e 64 | 20 74 68 65 20 66 69 72 |ame, and| the fir|
|00000c50| 73 74 20 70 69 63 74 75 | 72 65 20 74 6f 20 62 65 |st pictu|re to be|
|00000c60| 20 73 74 61 72 74 65 64 | 0a 09 69 6e 20 74 68 65 | started|..in the|
|00000c70| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 69 73 20 | applica|tion is |
|00000c80| 64 65 74 65 72 6d 69 6e | 65 64 20 69 6e 20 74 68 |determin|ed in th|
|00000c90| 65 20 6d 61 69 6e 20 72 | 6f 75 74 69 6e 65 20 28 |e main r|outine (|
|00000ca0| 6f 72 20 61 20 64 65 73 | 63 65 6e 64 61 6e 74 29 |or a des|cendant)|
|00000cb0| 0a 09 74 68 72 6f 75 67 | 68 20 74 68 65 20 66 75 |..throug|h the fu|
|00000cc0| 6e 63 74 69 6f 6e 20 7b | 5c 65 6d 20 70 69 63 5c |nction {|\em pic\|
|00000cd0| 5f 63 61 6c 6c 7d 2e 0a | 0a 09 41 20 70 69 63 74 |_call}..|..A pict|
|00000ce0| 75 72 65 20 63 61 6e 20 | 61 6c 73 6f 20 68 61 76 |ure can |also hav|
|00000cf0| 65 20 6d 6f 64 69 66 69 | 65 72 73 2c 20 63 75 72 |e modifi|ers, cur|
|00000d00| 72 65 6e 74 6c 79 20 74 | 68 65 20 6f 6e 6c 79 20 |rently t|he only |
|00000d10| 6d 6f 64 69 66 69 65 72 | 20 61 76 61 69 6c 61 62 |modifier| availab|
|00000d20| 6c 65 0a 09 69 73 20 74 | 68 65 20 77 6f 72 64 20 |le..is t|he word |
|00000d30| 7b 5c 65 6d 20 46 72 61 | 6d 65 7d 20 77 69 6c 6c |{\em Fra|me} will|
|00000d40| 20 63 61 75 73 65 20 61 | 20 62 6f 72 64 65 72 20 | cause a| border |
|00000d50| 74 6f 20 62 65 20 64 72 | 61 77 6e 20 61 72 6f 75 |to be dr|awn arou|
|00000d60| 6e 64 20 74 68 65 0a 09 | 70 69 63 74 75 72 65 2c |nd the..|picture,|
|00000d70| 20 6e 6f 74 65 20 74 68 | 61 74 20 74 68 69 73 20 | note th|at this |
|00000d80| 77 69 6c 6c 20 73 63 72 | 69 6e 6b 20 74 68 65 20 |will scr|ink the |
|00000d90| 65 66 66 65 63 74 69 76 | 65 20 61 72 65 61 20 6f |effectiv|e area o|
|00000da0| 66 20 74 68 65 20 70 69 | 63 74 75 72 65 2e 0a 0a |f the pi|cture...|
|00000db0| 09 53 79 6e 74 61 78 20 | 66 6f 72 20 61 20 70 69 |.Syntax |for a pi|
|00000dc0| 63 74 75 72 65 20 69 73 | 3a 0a 09 5c 62 65 67 69 |cture is|:..\begi|
|00000dd0| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|00000de0| 20 20 20 20 50 49 43 54 | 55 52 45 20 3c 70 69 63 | PICT|URE <pic|
|00000df0| 74 75 72 65 2d 6e 61 6d | 65 3e 20 56 49 45 57 50 |ture-nam|e> VIEWP|
|00000e00| 4f 52 54 20 3c 76 69 65 | 77 70 6f 72 74 2d 6e 61 |ORT <vie|wport-na|
|00000e10| 6d 65 3e 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 |me> {. | |
|00000e20| 20 20 3c 6c 69 74 65 72 | 61 6c 73 3e 20 20 20 5c | <liter|als> \|
|00000e30| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 3c 66 69 |. | <fi|
|00000e40| 65 6c 64 73 3e 20 20 20 | 20 20 20 3e 20 69 6e 20 |elds> | > in |
|00000e50| 61 6e 79 20 6f 72 64 65 | 72 0a 20 20 20 20 20 20 |any orde|r. |
|00000e60| 20 20 20 20 20 20 3c 6d | 6f 64 69 66 69 65 72 3e | <m|odifier>|
|00000e70| 20 20 20 7c 0a 20 20 20 | 20 20 20 20 20 20 20 20 | |. | |
|00000e80| 20 3c 65 76 65 6e 74 73 | 3e 20 20 20 20 20 2f 0a | <events|> /.|
|00000e90| 20 20 20 20 20 20 20 20 | 7d 0a 09 5c 65 6e 64 7b | |}..\end{|
|00000ea0| 76 65 72 62 61 74 69 6d | 7d 0a 0a 09 45 78 61 6d |verbatim|}...Exam|
|00000eb0| 70 6c 65 3a 0a 09 5c 62 | 65 67 69 6e 7b 76 65 72 |ple:..\b|egin{ver|
|00000ec0| 62 61 74 69 6d 7d 0a 20 | 20 20 20 20 20 20 20 50 |batim}. | P|
|00000ed0| 69 63 74 75 72 65 20 6d | 61 69 6e 20 56 69 65 77 |icture m|ain View|
|00000ee0| 70 6f 72 74 20 73 74 64 | 73 63 72 65 65 6e 20 7b |port std|screen {|
|00000ef0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 4c 69 74 |. | Lit|
|00000f00| 65 72 61 6c 20 31 30 2c | 20 31 30 2c 20 22 57 65 |eral 10,| 10, "We|
|00000f10| 6c 63 6f 6d 65 2c 20 65 | 6e 74 65 72 20 79 6f 75 |lcome, e|nter you|
|00000f20| 72 20 6e 61 6d 65 3a 20 | 22 3b 0a 20 20 20 20 20 |r name: |";. |
|00000f30| 20 20 20 20 20 20 20 46 | 72 61 6d 65 3b 0a 20 20 | F|rame;. |
|00000f40| 20 20 20 20 20 20 20 20 | 20 20 46 69 65 6c 64 20 | | Field |
|00000f50| 4e 61 6d 65 20 7b 0a 20 | 20 20 20 20 20 20 20 20 |Name {. | |
|00000f60| 20 20 20 20 20 20 20 50 | 6f 73 20 2b 30 2c 20 2b | P|os +0, +|
|00000f70| 31 3b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |1;. | |
|00000f80| 20 20 20 54 79 70 65 20 | 43 68 61 72 28 31 30 29 | Type |Char(10)|
|00000f90| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 7d 0a |;. | }.|
|00000fa0| 20 20 20 20 20 20 20 20 | 7d 0a 09 5c 65 6e 64 7b | |}..\end{|
|00000fb0| 76 65 72 62 61 74 69 6d | 7d 0a 0a 0a 5c 73 75 62 |verbatim|}...\sub|
|00000fc0| 73 65 63 74 69 6f 6e 7b | 46 69 65 6c 64 73 7d 0a |section{|Fields}.|
|00000fd0| 0a 09 46 69 65 6c 64 73 | 20 61 72 65 20 70 6c 61 |..Fields| are pla|
|00000fe0| 63 65 73 68 6f 6c 64 65 | 72 73 20 69 6e 20 70 69 |cesholde|rs in pi|
|00000ff0| 63 74 75 72 65 73 20 74 | 68 61 74 20 6d 61 79 20 |ctures t|hat may |
|00001000| 62 65 20 75 73 65 64 20 | 74 6f 20 69 6e 70 75 74 |be used |to input|
|00001010| 20 66 72 6f 6d 0a 09 6f | 70 65 72 61 74 6f 72 20 | from..o|perator |
|00001020| 61 6e 64 2f 6f 72 20 61 | 73 20 6f 75 74 70 75 74 |and/or a|s output|
|00001030| 20 66 72 6f 6d 20 74 68 | 65 20 61 70 70 6c 69 63 | from th|e applic|
|00001040| 61 74 69 6f 6e 2e 20 41 | 20 66 69 65 6c 64 20 6d |ation. A| field m|
|00001050| 61 79 20 62 65 20 6f 66 | 0a 09 6d 61 6e 79 20 6b |ay be of|..many k|
|00001060| 69 6e 64 20 6f 66 20 74 | 79 70 65 73 20 61 6e 64 |ind of t|ypes and|
|00001070| 20 73 69 7a 65 73 2e 20 | 46 69 65 6c 64 73 20 63 | sizes. |Fields c|
|00001080| 61 6e 20 61 6c 73 6f 20 | 63 6f 6e 74 61 69 6e 20 |an also |contain |
|00001090| 65 76 65 6e 74 73 20 74 | 68 61 74 0a 09 77 69 6c |events t|hat..wil|
|000010a0| 6c 20 62 65 20 63 61 6c | 6c 65 64 20 77 68 65 6e |l be cal|led when|
|000010b0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 65 | the spe|cified e|
|000010c0| 76 65 6e 74 20 6f 63 63 | 75 72 73 2e 20 49 74 20 |vent occ|urs. It |
|000010d0| 69 73 20 61 6c 73 6f 20 | 70 6f 73 73 69 62 6c 65 |is also |possible|
|000010e0| 0a 09 74 6f 20 73 70 65 | 63 69 66 79 20 6c 69 74 |..to spe|cify lit|
|000010f0| 65 72 61 6c 20 74 65 78 | 74 20 74 6f 20 61 70 70 |eral tex|t to app|
|00001100| 65 61 72 20 69 6d 6d 65 | 64 69 61 74 65 6c 79 20 |ear imme|diately |
|00001110| 62 65 66 6f 72 65 20 61 | 6e 64 20 69 6d 6d 65 64 |before a|nd immed|
|00001120| 69 61 74 65 6c 79 0a 09 | 61 66 74 65 72 20 74 68 |iately..|after th|
|00001130| 65 20 61 63 74 75 61 6c | 20 66 69 65 6c 64 2c 20 |e actual| field, |
|00001140| 74 68 69 73 20 6d 61 6b | 65 73 20 69 74 20 70 6f |this mak|es it po|
|00001150| 73 73 69 62 6c 65 20 74 | 6f 20 68 61 76 65 20 74 |ssible t|o have t|
|00001160| 65 78 74 20 62 65 6c 6f | 6e 67 69 6e 67 0a 09 74 |ext belo|nging..t|
|00001170| 6f 20 66 69 65 6c 64 73 | 20 74 68 61 74 20 61 72 |o fields| that ar|
|00001180| 65 20 6e 6f 74 20 64 65 | 70 65 6e 64 69 6e 67 20 |e not de|pending |
|00001190| 6f 66 20 74 68 65 20 66 | 69 65 6c 64 73 20 70 6f |of the f|ields po|
|000011a0| 73 69 74 69 6f 6e 2e 0a | 0a 09 54 68 65 20 70 6f |sition..|..The po|
|000011b0| 73 69 74 69 6f 6e 20 6f | 66 20 61 20 66 69 65 6c |sition o|f a fiel|
|000011c0| 64 20 6d 61 79 20 62 65 | 20 73 70 65 63 69 66 69 |d may be| specifi|
|000011d0| 65 64 20 69 6e 20 61 62 | 73 6f 6c 75 74 65 2d 20 |ed in ab|solute- |
|000011e0| 6f 72 20 72 65 6c 61 74 | 69 76 65 20 0a 09 63 6f |or relat|ive ..co|
|000011f0| 6f 72 64 69 6e 61 74 65 | 73 2e 20 46 6f 72 20 72 |ordinate|s. For r|
|00001200| 65 6c 61 74 69 76 65 20 | 63 6f 6f 72 64 69 6e 61 |elative |coordina|
|00001210| 74 65 73 20 74 68 65 20 | 63 6f 6c 75 6d 6e 2d 20 |tes the |column- |
|00001220| 61 6e 64 20 72 6f 77 20 | 6e 75 6d 62 65 72 20 69 |and row |number i|
|00001230| 73 0a 09 70 72 65 66 69 | 78 65 64 20 62 79 20 61 |s..prefi|xed by a|
|00001240| 20 6d 69 6e 75 73 20 6f | 72 20 61 20 70 6c 75 73 | minus o|r a plus|
|00001250| 20 73 69 67 6e 20 6d 65 | 61 6e 69 6e 67 20 70 6f | sign me|aning po|
|00001260| 73 69 74 69 76 65 20 6f | 72 20 6e 65 67 61 74 69 |sitive o|r negati|
|00001270| 76 65 0a 09 72 65 6c 61 | 74 69 76 65 20 70 6f 73 |ve..rela|tive pos|
|00001280| 69 74 69 6f 6e 2e 20 41 | 20 70 6f 73 69 74 69 6f |ition. A| positio|
|00001290| 6e 20 63 61 6e 20 61 6c | 73 6f 20 62 65 20 73 70 |n can al|so be sp|
|000012a0| 65 63 69 66 69 65 64 20 | 61 73 20 7b 5c 65 6d 20 |ecified |as {\em |
|000012b0| 43 65 6e 74 65 72 7d 0a | 09 61 73 20 65 69 74 68 |Center}.|.as eith|
|000012c0| 65 72 20 74 68 65 20 72 | 6f 77 20 6f 72 20 63 6f |er the r|ow or co|
|000012d0| 6c 75 6d 6e 20 76 61 6c | 75 65 20 77 68 69 63 68 |lumn val|ue which|
|000012e0| 20 77 69 6c 6c 20 63 65 | 6e 74 65 72 20 74 68 65 | will ce|nter the|
|000012f0| 20 66 69 65 6c 64 20 61 | 6e 64 20 74 68 65 0a 09 | field a|nd the..|
|00001300| 77 6f 72 64 20 7b 5c 65 | 6d 20 4d 61 78 7d 20 77 |word {\e|m Max} w|
|00001310| 69 63 68 20 77 69 6c 6c | 20 70 6c 61 63 65 20 74 |ich will| place t|
|00001320| 68 65 20 66 69 65 6c 64 | 20 61 74 20 74 68 65 20 |he field| at the |
|00001330| 62 6f 72 64 65 72 20 6f | 66 20 74 68 65 20 70 69 |border o|f the pi|
|00001340| 63 74 75 72 65 0a 09 28 | 72 69 67 68 74 6d 6f 73 |cture..(|rightmos|
|00001350| 74 20 63 6f 6c 75 6d 6e | 20 6f 72 20 6c 6f 77 65 |t column| or lowe|
|00001360| 73 74 20 6c 69 6e 65 29 | 2e 0a 09 46 69 6e 61 6c |st line)|...Final|
|00001370| 6c 79 20 69 74 20 69 73 | 20 70 6f 73 73 69 62 6c |ly it is| possibl|
|00001380| 65 20 74 6f 20 73 70 65 | 63 69 66 79 20 61 20 63 |e to spe|cify a c|
|00001390| 6f 75 70 6c 65 20 6f 66 | 20 6d 6f 64 69 66 69 65 |ouple of| modifie|
|000013a0| 72 73 20 66 6f 72 20 74 | 68 65 20 66 69 65 6c 64 |rs for t|he field|
|000013b0| 0a 09 74 68 61 74 20 6d | 6f 64 69 66 69 65 73 20 |..that m|odifies |
|000013c0| 61 64 6a 75 73 74 6d 65 | 6e 74 2c 20 76 69 73 69 |adjustme|nt, visi|
|000013d0| 62 69 6c 69 74 79 2c 20 | 70 72 6f 74 65 63 74 69 |bility, |protecti|
|000013e0| 6f 6e 20 65 2e 74 2e 63 | 2e 0a 0a 0a 09 56 61 6c |on e.t.c|.....Val|
|000013f0| 69 64 20 74 79 70 65 73 | 20 66 6f 72 20 61 20 66 |id types| for a f|
|00001400| 69 65 6c 64 20 69 73 3a | 0a 09 5c 62 65 67 69 6e |ield is:|..\begin|
|00001410| 7b 69 74 65 6d 69 7a 65 | 7d 0a 09 20 20 20 5c 69 |{itemize|}.. \i|
|00001420| 74 65 6d 7b 49 4e 54 7d | 20 46 69 65 6c 64 20 6d |tem{INT}| Field m|
|00001430| 61 79 20 6f 6e 6c 79 20 | 63 6f 6e 74 61 69 6e 20 |ay only |contain |
|00001440| 64 69 67 69 74 73 2e 0a | 09 20 20 20 5c 69 74 65 |digits..|. \ite|
|00001450| 6d 7b 41 4c 4e 55 4d 7d | 20 46 69 65 6c 64 20 6d |m{ALNUM}| Field m|
|00001460| 61 79 20 6f 6e 6c 79 20 | 63 6f 6e 74 61 69 6e 20 |ay only |contain |
|00001470| 61 6c 70 68 61 6e 75 6d | 65 72 69 63 20 63 68 61 |alphanum|eric cha|
|00001480| 72 61 63 74 65 72 73 2e | 0a 09 20 20 20 5c 69 74 |racters.|.. \it|
|00001490| 65 6d 7b 43 48 41 52 7d | 20 46 69 65 6c 64 20 6d |em{CHAR}| Field m|
|000014a0| 61 79 20 63 6f 6e 74 61 | 69 6e 20 61 6e 79 20 70 |ay conta|in any p|
|000014b0| 72 69 6e 74 61 62 6c 65 | 20 63 68 61 72 61 63 74 |rintable| charact|
|000014c0| 65 72 2e 0a 09 5c 65 6e | 64 7b 69 74 65 6d 69 7a |er...\en|d{itemiz|
|000014d0| 65 7d 0a 09 54 68 65 20 | 73 69 7a 65 20 6f 66 20 |e}..The |size of |
|000014e0| 61 20 66 69 65 6c 64 20 | 69 73 20 62 79 20 64 65 |a field |is by de|
|000014f0| 66 61 75 6c 74 20 31 2c | 20 62 75 74 20 6d 61 79 |fault 1,| but may|
|00001500| 20 62 65 20 61 6c 74 65 | 72 65 64 20 61 73 20 61 | be alte|red as a|
|00001510| 20 6e 75 6d 62 65 72 0a | 09 77 69 74 68 69 6e 20 | number.|.within |
|00001520| 62 72 61 63 6b 65 74 73 | 20 61 66 74 65 72 20 74 |brackets| after t|
|00001530| 68 65 20 74 79 70 65 2e | 0a 0a 09 56 61 6c 69 64 |he type.|...Valid|
|00001540| 20 6d 6f 64 69 66 69 65 | 72 73 20 61 72 65 3a 0a | modifie|rs are:.|
|00001550| 09 5c 62 65 67 69 6e 7b | 69 74 65 6d 69 7a 65 7d |.\begin{|itemize}|
|00001560| 0a 09 20 20 20 20 5c 69 | 74 65 6d 7b 50 52 4f 54 |.. \i|tem{PROT|
|00001570| 45 43 54 45 44 7d 09 2d | 20 46 69 65 6c 64 20 6d |ECTED}.-| Field m|
|00001580| 61 79 20 6e 6f 74 20 62 | 65 20 61 6c 74 65 72 65 |ay not b|e altere|
|00001590| 64 2e 0a 09 20 20 20 20 | 5c 69 74 65 6d 7b 46 4f |d... |\item{FO|
|000015a0| 52 42 49 44 44 45 4e 7d | 09 2d 20 46 69 65 6c 64 |RBIDDEN}|.- Field|
|000015b0| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 62 65 20 6d | may not| be be m|
|000015c0| 6f 76 65 64 20 74 6f 2e | 0a 09 20 20 20 20 5c 69 |oved to.|.. \i|
|000015d0| 74 65 6d 7b 55 50 50 45 | 52 43 41 53 45 7d 09 2d |tem{UPPE|RCASE}.-|
|000015e0| 20 41 6c 6c 20 61 6c 70 | 68 61 20 63 68 61 72 61 | All alp|ha chara|
|000015f0| 63 74 65 72 73 20 61 72 | 65 20 69 6e 20 75 70 70 |cters ar|e in upp|
|00001600| 65 72 63 61 73 65 2e 0a | 09 20 20 20 20 5c 69 74 |ercase..|. \it|
|00001610| 65 6d 7b 48 49 47 48 4c | 49 47 48 54 7d 09 2d 20 |em{HIGHL|IGHT}.- |
|00001620| 46 69 65 6c 64 20 69 73 | 20 68 69 67 68 6c 69 67 |Field is| highlig|
|00001630| 68 74 65 64 2e 0a 09 20 | 20 20 20 5c 69 74 65 6d |hted... | \item|
|00001640| 7b 49 4e 56 49 53 49 42 | 4c 45 7d 09 2d 20 46 69 |{INVISIB|LE}.- Fi|
|00001650| 65 6c 64 20 69 73 20 69 | 6e 76 69 73 69 62 6c 65 |eld is i|nvisible|
|00001660| 2e 0a 09 5c 65 6e 64 7b | 69 74 65 6d 69 7a 65 7d |...\end{|itemize}|
|00001670| 0a 0a 09 53 79 6e 74 61 | 78 20 66 6f 72 20 61 20 |...Synta|x for a |
|00001680| 66 69 65 6c 64 20 69 73 | 3a 0a 09 5c 62 65 67 69 |field is|:..\begi|
|00001690| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 20 |n{verbat|im}. |
|000016a0| 20 20 20 20 46 49 45 4c | 44 20 3c 6e 61 6d 65 3e | FIEL|D <name>|
|000016b0| 20 7b 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 3c | {. | <|
|000016c0| 74 79 70 65 3e 20 5b 28 | 3c 73 69 7a 65 3e 29 5d |type> [(|<size>)]|
|000016d0| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 50 4f |;. | PO|
|000016e0| 53 20 5b 2b 2d 5d 3c 63 | 6f 6c 75 6d 6e 3e 2c 20 |S [+-]<c|olumn>, |
|000016f0| 5b 2b 2d 5d 3c 72 6f 77 | 3e 3b 0a 20 20 20 20 20 |[+-]<row|>;. |
|00001700| 20 20 20 20 20 20 20 4c | 56 41 4c 55 45 20 22 3c | L|VALUE "<|
|00001710| 6c 65 66 74 20 76 61 6c | 75 65 3e 22 3b 0a 20 20 |left val|ue>";. |
|00001720| 20 20 20 20 20 20 20 20 | 20 20 52 56 41 4c 55 45 | | RVALUE|
|00001730| 20 22 3c 72 69 67 68 74 | 20 76 61 6c 75 65 3e 22 | "<right| value>"|
|00001740| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 5b 4d |;. | [M|
|00001750| 4f 44 49 46 49 45 52 3b | 5d 0a 20 20 20 20 20 20 |ODIFIER;|]. |
|00001760| 20 20 7d 0a 09 5c 65 6e | 64 7b 76 65 72 62 61 74 | }..\en|d{verbat|
|00001770| 69 6d 7d 0a 09 45 78 61 | 6d 70 6c 65 3a 0a 09 5c |im}..Exa|mple:..\|
|00001780| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00001790| 20 20 20 20 20 20 20 20 | 46 69 65 6c 64 20 61 64 | |Field ad|
|000017a0| 72 65 73 73 20 7b 0a 20 | 20 20 20 20 20 20 20 20 |ress {. | |
|000017b0| 20 20 20 50 6f 73 20 32 | 30 2c 20 2b 31 3b 0a 20 | Pos 2|0, +1;. |
|000017c0| 20 20 20 20 20 20 20 20 | 20 20 20 54 79 70 65 20 | | Type |
|000017d0| 43 68 61 72 28 32 30 29 | 3b 0a 20 20 20 20 20 20 |Char(20)|;. |
|000017e0| 20 20 20 20 20 20 4c 56 | 61 6c 75 65 20 22 41 64 | LV|alue "Ad|
|000017f0| 72 65 73 73 3a 20 22 3b | 0a 20 20 20 20 20 20 20 |ress: ";|. |
|00001800| 20 20 20 20 20 55 70 70 | 65 72 63 61 73 65 3b 0a | Upp|ercase;.|
|00001810| 20 20 20 20 20 20 20 20 | 7d 0a 09 5c 65 6e 64 7b | |}..\end{|
|00001820| 76 65 72 62 61 74 69 6d | 7d 0a 0a 5c 73 75 62 73 |verbatim|}..\subs|
|00001830| 65 63 74 69 6f 6e 7b 4c | 69 74 65 72 61 6c 73 7d |ection{L|iterals}|
|00001840| 0a 0a 09 4c 69 74 65 72 | 61 6c 73 20 69 73 20 73 |...Liter|als is s|
|00001850| 74 61 74 69 63 20 74 65 | 78 74 20 74 6f 20 62 65 |tatic te|xt to be|
|00001860| 20 76 69 73 75 61 6c 69 | 7a 65 64 20 69 6e 20 74 | visuali|zed in t|
|00001870| 68 65 20 70 69 63 74 75 | 72 65 2c 20 6c 69 74 65 |he pictu|re, lite|
|00001880| 72 61 6c 73 0a 09 69 73 | 20 62 65 6c 6f 77 20 66 |rals..is| below f|
|00001890| 69 65 6c 64 73 20 69 66 | 20 61 20 63 6f 6c 6c 69 |ields if| a colli|
|000018a0| 73 73 69 6f 6e 20 73 68 | 6f 75 6c 64 20 6f 63 63 |ssion sh|ould occ|
|000018b0| 75 72 2e 20 54 68 65 20 | 73 61 6d 65 20 70 6f 73 |ur. The |same pos|
|000018c0| 69 74 69 6f 6e 0a 09 63 | 6f 6f 72 64 69 6e 61 74 |ition..c|oordinat|
|000018d0| 65 73 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 61 |es can b|e used a|
|000018e0| 73 20 66 6f 72 20 66 69 | 65 6c 64 73 20 28 65 78 |s for fi|elds (ex|
|000018f0| 2e 20 43 65 6e 74 65 72 | 29 2e 0a 09 53 79 6e 74 |. Center|)...Synt|
|00001900| 61 78 20 6f 66 20 61 20 | 6c 69 74 65 72 61 6c 20 |ax of a |literal |
|00001910| 69 73 3a 0a 09 5c 62 65 | 67 69 6e 7b 76 65 72 62 |is:..\be|gin{verb|
|00001920| 61 74 69 6d 7d 0a 20 20 | 20 20 20 20 20 20 4c 69 |atim}. | Li|
|00001930| 74 65 72 61 6c 20 5b 2b | 2d 5d 3c 63 6f 6c 75 6d |teral [+|-]<colum|
|00001940| 6e 3e 2c 20 5b 2b 2d 5d | 3c 72 6f 77 3e 2c 20 22 |n>, [+-]|<row>, "|
|00001950| 3c 74 65 78 74 3e 22 3b | 0a 09 5c 65 6e 64 7b 76 |<text>";|..\end{v|
|00001960| 65 72 62 61 74 69 6d 7d | 0a 09 45 78 61 6d 70 6c |erbatim}|..Exampl|
|00001970| 65 3a 0a 09 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |e:..\beg|in{verba|
|00001980| 74 69 6d 7d 0a 20 20 20 | 20 20 20 20 20 4c 69 74 |tim}. | Lit|
|00001990| 65 72 61 6c 20 2b 30 2c | 20 2b 31 2c 20 22 4c 69 |eral +0,| +1, "Li|
|000019a0| 73 74 20 6f 66 20 70 65 | 72 73 6f 6e 73 22 3b 0a |st of pe|rsons";.|
|000019b0| 09 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|000019c0| 0a 5c 73 75 62 73 65 63 | 74 69 6f 6e 7b 45 76 65 |.\subsec|tion{Eve|
|000019d0| 6e 74 73 7d 0a 0a 09 45 | 76 65 6e 74 73 20 61 72 |nts}...E|vents ar|
|000019e0| 65 20 75 73 65 64 20 74 | 6f 20 64 65 66 69 6e 65 |e used t|o define|
|000019f0| 20 66 75 6e 63 74 69 6f | 6e 73 20 6b 65 79 73 20 | functio|ns keys |
|00001a00| 61 6e 64 20 6f 74 68 65 | 72 20 73 70 65 63 69 61 |and othe|r specia|
|00001a10| 6c 20 63 61 73 65 73 20 | 66 6f 72 20 65 67 2e 0a |l cases |for eg..|
|00001a20| 09 72 65 66 72 65 73 68 | 20 64 69 73 70 6c 61 79 |.refresh| display|
|00001a30| 20 61 6e 64 20 73 6f 20 | 6f 6e 2e 20 41 6e 20 65 | and so |on. An e|
|00001a40| 76 65 6e 74 20 69 73 20 | 73 70 65 63 69 66 69 65 |vent is |specifie|
|00001a50| 64 20 62 79 20 69 74 73 | 20 65 76 65 6e 74 20 74 |d by its| event t|
|00001a60| 79 70 65 0a 09 61 6e 64 | 20 65 69 74 68 65 72 20 |ype..and| either |
|00001a70| 61 20 62 6c 6f 63 6b 20 | 6f 66 20 43 2d 63 6f 64 |a block |of C-cod|
|00001a80| 65 20 74 6f 20 65 78 65 | 63 75 74 65 20 77 68 65 |e to exe|cute whe|
|00001a90| 6e 20 74 68 65 20 65 76 | 65 6e 74 20 6f 63 63 75 |n the ev|ent occu|
|00001aa0| 72 72 65 73 2c 20 6f 72 | 20 74 68 65 0a 09 77 6f |rres, or| the..wo|
|00001ab0| 72 64 20 27 66 6f 72 67 | 65 74 27 20 77 69 63 68 |rd 'forg|et' wich|
|00001ac0| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 74 68 65 20 | means t|hat the |
|00001ad0| 73 70 65 63 69 66 69 65 | 64 20 65 76 65 6e 74 20 |specifie|d event |
|00001ae0| 73 68 6f 75 6c 64 20 62 | 65 20 64 69 73 61 62 6c |should b|e disabl|
|00001af0| 65 64 20 66 6f 72 0a 09 | 74 68 69 73 20 66 69 65 |ed for..|this fie|
|00001b00| 6c 64 2e 0a 0a 09 54 79 | 70 65 20 6f 66 20 65 76 |ld....Ty|pe of ev|
|00001b10| 65 6e 74 73 20 69 73 3a | 0a 09 5c 62 65 67 69 6e |ents is:|..\begin|
|00001b20| 7b 69 74 65 6d 69 7a 65 | 7d 0a 09 20 20 20 5c 69 |{itemize|}.. \i|
|00001b30| 74 65 6d 5b 4b 45 59 5d | 20 41 20 6b 65 79 20 68 |tem[KEY]| A key h|
|00001b40| 61 73 20 62 65 65 6e 20 | 70 72 65 73 73 65 64 2e |as been |pressed.|
|00001b50| 20 41 6e 20 65 76 65 6e | 74 20 6f 66 20 74 68 65 | An even|t of the|
|00001b60| 20 74 79 70 65 20 4b 45 | 59 20 6d 75 73 74 20 0a | type KE|Y must .|
|00001b70| 09 09 20 20 20 20 20 20 | 62 65 20 66 6f 6c 6c 6f |.. |be follo|
|00001b80| 77 65 64 20 62 79 20 74 | 68 65 20 6e 61 6d 65 20 |wed by t|he name |
|00001b90| 6f 66 20 74 68 65 20 6b | 65 79 2c 20 6c 61 74 65 |of the k|ey, late|
|00001ba0| 72 20 69 6e 20 74 68 69 | 73 0a 09 09 20 20 20 20 |r in thi|s... |
|00001bb0| 20 20 64 6f 63 75 6d 65 | 6e 74 20 79 6f 75 20 77 | docume|nt you w|
|00001bc0| 69 6c 6c 20 66 69 6e 64 | 20 61 20 6c 69 73 74 20 |ill find| a list |
|00001bd0| 6f 66 20 61 6c 6c 20 76 | 61 6c 69 64 20 6b 65 79 |of all v|alid key|
|00001be0| 73 2e 20 54 68 65 0a 09 | 09 20 20 20 20 20 20 73 |s. The..|. s|
|00001bf0| 70 65 63 69 61 6c 20 6b | 65 79 20 41 4e 59 20 6d |pecial k|ey ANY m|
|00001c00| 65 61 6e 73 20 61 6e 79 | 20 6b 65 79 20 61 6e 64 |eans any| key and|
|00001c10| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 0a 09 09 | the var|iable...|
|00001c20| 20 20 20 20 20 20 7b 5c | 65 6d 20 65 76 65 6e 74 | {\|em event|
|00001c30| 5c 5f 63 6f 64 65 7d 20 | 63 6f 6e 74 61 69 6e 73 |\_code} |contains|
|00001c40| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|00001c50| 61 74 20 6b 65 79 2e 0a | 09 20 20 20 5c 69 74 65 |at key..|. \ite|
|00001c60| 6d 5b 52 45 46 52 45 53 | 48 5d 20 52 65 66 72 65 |m[REFRES|H] Refre|
|00001c70| 73 68 20 74 68 65 20 70 | 69 63 74 75 72 65 2e 0a |sh the p|icture..|
|00001c80| 09 20 20 20 5c 69 74 65 | 6d 5b 44 52 41 57 5d 20 |. \ite|m[DRAW] |
|00001c90| 4f 6e 6c 79 20 61 76 61 | 69 6c 61 62 6c 65 20 66 |Only ava|ilable f|
|00001ca0| 72 6f 6d 20 70 69 63 74 | 75 72 65 73 2c 20 69 73 |rom pict|ures, is|
|00001cb0| 20 63 61 6c 6c 65 64 2e | 0a 09 20 20 20 20 09 20 | called.|.. . |
|00001cc0| 20 20 20 20 20 20 77 68 | 65 6e 20 61 20 70 69 63 | wh|en a pic|
|00001cd0| 74 75 72 65 73 20 69 73 | 20 66 69 72 73 74 20 64 |tures is| first d|
|00001ce0| 72 61 77 6e 2e 0a 09 20 | 20 20 5c 69 74 65 6d 5b |rawn... | \item[|
|00001cf0| 45 4e 54 52 59 5d 20 57 | 68 65 6e 20 66 69 65 6c |ENTRY] W|hen fiel|
|00001d00| 64 20 69 73 20 65 6e 74 | 65 72 65 64 2e 0a 09 20 |d is ent|ered... |
|00001d10| 20 20 5c 69 74 65 6d 5b | 45 58 49 54 5d 20 57 68 | \item[|EXIT] Wh|
|00001d20| 65 6e 20 66 69 65 6c 64 | 20 69 73 20 6c 65 66 74 |en field| is left|
|00001d30| 2e 0a 09 20 20 20 5c 69 | 74 65 6d 5b 50 52 45 56 |... \i|tem[PREV|
|00001d40| 49 4f 55 53 5d 20 57 68 | 65 6e 20 74 72 79 69 6e |IOUS] Wh|en tryin|
|00001d50| 67 20 74 6f 20 6d 6f 76 | 65 20 74 6f 20 74 68 65 |g to mov|e to the|
|00001d60| 20 6c 65 66 74 20 6f 66 | 20 74 68 65 20 66 69 65 | left of| the fie|
|00001d70| 6c 64 2e 0a 09 20 20 20 | 5c 69 74 65 6d 5b 4e 45 |ld... |\item[NE|
|00001d80| 58 54 5d 20 57 68 65 6e | 20 74 72 79 69 6e 67 20 |XT] When| trying |
|00001d90| 74 6f 20 6d 6f 76 65 20 | 74 6f 20 74 68 65 20 72 |to move |to the r|
|00001da0| 69 67 68 74 20 6f 66 20 | 74 68 65 20 66 69 65 6c |ight of |the fiel|
|00001db0| 64 2e 0a 09 5c 65 6e 64 | 7b 69 74 65 6d 69 7a 65 |d...\end|{itemize|
|00001dc0| 7d 0a 09 20 20 20 20 0a | 0a 09 53 79 6e 74 61 78 |}.. .|..Syntax|
|00001dd0| 20 66 6f 72 20 61 6e 20 | 65 76 65 6e 74 20 69 73 | for an |event is|
|00001de0| 3a 0a 09 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |:..\begi|n{verbat|
|00001df0| 69 6d 7d 0a 20 20 20 20 | 20 20 20 20 5b 47 4c 4f |im}. | [GLO|
|00001e00| 42 41 4c 5d 20 45 56 45 | 4e 54 20 3c 74 79 70 65 |BAL] EVE|NT <type|
|00001e10| 3e 20 5b 3c 74 79 70 65 | 20 6d 6f 64 69 66 69 65 |> [<type| modifie|
|00001e20| 72 3e 5d 20 7b 0a 20 20 | 20 20 20 20 20 20 20 20 |r>] {. | |
|00001e30| 20 20 3c 43 2d 63 6f 64 | 65 20 73 74 61 74 65 6d | <C-cod|e statem|
|00001e40| 65 6e 74 73 3e 0a 20 20 | 20 20 20 20 20 20 7d 0a |ents>. | }.|
|00001e50| 09 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00001e60| 09 6f 72 0a 09 5c 62 65 | 67 69 6e 7b 76 65 72 62 |.or..\be|gin{verb|
|00001e70| 61 74 69 6d 7d 0a 20 20 | 20 20 20 20 20 20 5b 47 |atim}. | [G|
|00001e80| 4c 4f 42 41 4c 5d 20 45 | 56 45 4e 54 20 3c 74 79 |LOBAL] E|VENT <ty|
|00001e90| 70 65 3e 20 5b 3c 74 79 | 70 65 20 6d 6f 64 69 66 |pe> [<ty|pe modif|
|00001ea0| 69 65 72 3e 5d 20 46 4f | 52 47 45 54 3b 0a 09 5c |ier>] FO|RGET;..\|
|00001eb0| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 09 45 |end{verb|atim}..E|
|00001ec0| 78 61 6d 70 6c 65 3a 0a | 09 5c 62 65 67 69 6e 7b |xample:.|.\begin{|
|00001ed0| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 20 20 20 |verbatim|}. |
|00001ee0| 20 20 45 76 65 6e 74 20 | 45 6e 74 72 79 20 7b 0a | Event |Entry {.|
|00001ef0| 20 20 20 20 20 20 20 20 | 20 20 20 20 66 6c 64 5f | | fld_|
|00001f00| 73 65 74 28 4e 55 4c 4c | 2c 20 22 58 22 29 3b 0a |set(NULL|, "X");.|
|00001f10| 20 20 20 20 20 20 20 20 | 7d 0a 0a 20 20 20 20 20 | |}.. |
|00001f20| 20 20 20 45 76 65 6e 74 | 20 4b 65 79 20 44 4f 57 | Event| Key DOW|
|00001f30| 4e 20 20 7b 0a 20 20 20 | 20 20 20 20 20 20 20 20 |N {. | |
|00001f40| 20 66 6c 64 5f 6d 6f 76 | 65 28 66 6c 64 5f 64 6f | fld_mov|e(fld_do|
|00001f50| 77 6e 28 4e 55 4c 4c 29 | 29 3b 0a 20 20 20 20 20 |wn(NULL)|);. |
|00001f60| 20 20 20 7d 0a 09 5c 65 | 6e 64 7b 76 65 72 62 61 | }..\e|nd{verba|
|00001f70| 74 69 6d 7d 0a 0a 09 54 | 68 65 20 6b 65 79 77 6f |tim}...T|he keywo|
|00001f80| 72 6b 20 7b 5c 65 6d 20 | 47 4c 4f 42 41 4c 7d 20 |rk {\em |GLOBAL} |
|00001f90| 6d 61 79 20 6f 6e 6c 79 | 20 62 65 20 73 70 65 63 |may only| be spec|
|00001fa0| 69 66 69 65 64 20 66 6f | 72 20 65 76 65 6e 74 73 |ified fo|r events|
|00001fb0| 20 6f 75 74 73 69 64 65 | 0a 09 66 69 65 6c 64 73 | outside|..fields|
|00001fc0| 20 61 6e 64 20 70 69 63 | 74 75 72 65 73 20 61 6e | and pic|tures an|
|00001fd0| 64 20 69 66 20 69 74 20 | 69 73 20 74 68 69 73 20 |d if it |is this |
|00001fe0| 65 76 65 6e 74 20 68 61 | 6e 64 6c 65 72 20 77 69 |event ha|ndler wi|
|00001ff0| 6c 6c 20 62 65 20 61 63 | 74 69 76 65 20 0a 09 66 |ll be ac|tive ..f|
|00002000| 6f 72 20 61 6c 6c 20 70 | 69 63 74 75 72 65 73 20 |or all p|ictures |
|00002010| 69 6e 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |in the a|pplicati|
|00002020| 6f 6e 20 75 6e 6c 65 73 | 73 20 6f 76 65 72 72 69 |on unles|s overri|
|00002030| 64 64 65 6e 20 62 79 20 | 6d 6f 72 65 20 6c 6f 63 |dden by |more loc|
|00002040| 61 6c 0a 09 65 76 65 6e | 74 20 68 61 6e 64 6c 65 |al..even|t handle|
|00002050| 72 73 20 69 6e 63 6c 75 | 64 69 6e 67 20 74 68 65 |rs inclu|ding the|
|00002060| 20 7b 5c 65 6d 20 46 4f | 52 47 45 54 7d 20 74 79 | {\em FO|RGET} ty|
|00002070| 70 65 2e 0a 0a 09 0a 5c | 73 65 63 74 69 6f 6e 7b |pe.....\|section{|
|00002080| 45 56 45 4e 54 20 61 6e | 64 20 43 43 4f 44 45 20 |EVENT an|d CCODE |
|00002090| 70 72 6f 67 72 61 6d 69 | 6e 67 7d 0a 0a 0a 09 46 |programi|ng}....F|
|000020a0| 6f 72 20 61 6c 6c 20 65 | 76 65 6e 74 2d 20 61 6e |or all e|vent- an|
|000020b0| 64 20 63 63 6f 64 65 20 | 62 6c 6f 63 6b 73 20 74 |d ccode |blocks t|
|000020c0| 68 65 20 64 65 76 65 6c | 6f 70 65 72 20 63 61 6e |he devel|oper can|
|000020d0| 20 75 73 65 20 61 20 73 | 65 74 0a 09 6c 69 62 72 | use a s|et..libr|
|000020e0| 61 72 79 20 66 75 6e 63 | 74 69 6f 6e 73 20 74 68 |ary func|tions th|
|000020f0| 61 74 20 63 6f 6d 65 73 | 20 77 69 74 68 20 63 66 |at comes| with cf|
|00002100| 6f 72 6d 73 2e 20 4d 6f | 73 74 20 66 75 6e 63 74 |orms. Mo|st funct|
|00002110| 69 6f 6e 73 20 72 65 74 | 75 72 6e 69 6e 67 0a 09 |ions ret|urning..|
|00002120| 69 6e 74 65 67 65 72 73 | 20 72 65 74 75 72 6e 73 |integers| returns|
|00002130| 20 65 69 74 68 65 72 20 | 4f 4b 20 6f 72 20 46 41 | either |OK or FA|
|00002140| 49 4c 20 65 78 65 70 74 | 20 66 6f 72 20 74 68 6f |IL exept| for tho|
|00002150| 73 65 20 6c 69 6b 65 20 | 66 6c 64 5c 5f 6c 65 6e |se like |fld\_len|
|00002160| 20 74 68 61 74 0a 09 72 | 65 74 75 72 6e 73 20 74 | that..r|eturns t|
|00002170| 68 65 20 76 61 6c 75 65 | 20 65 78 70 65 63 74 65 |he value| expecte|
|00002180| 64 2e 20 54 68 6f 73 65 | 20 72 65 74 75 72 6e 69 |d. Those| returni|
|00002190| 6e 67 20 70 6f 69 6e 74 | 65 72 73 20 72 65 74 75 |ng point|ers retu|
|000021a0| 72 6e 20 4e 55 4c 4c 0a | 09 75 70 70 6f 6e 20 66 |rn NULL.|.uppon f|
|000021b0| 61 69 6c 75 72 65 2e 0a | 09 54 68 69 73 20 69 73 |ailure..|.This is|
|000021c0| 20 61 20 6c 69 73 74 20 | 61 6e 64 20 61 20 64 65 | a list |and a de|
|000021d0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 61 6c 6c |scriptio|n of all|
|000021e0| 20 66 75 6e 63 74 69 6f | 6e 73 3a 09 20 20 20 20 | functio|ns:. |
|000021f0| 0a 09 5c 73 75 62 73 65 | 63 74 69 6f 6e 7b 53 74 |..\subse|ction{St|
|00002200| 61 72 74 2f 73 74 6f 70 | 20 66 75 6e 63 74 69 6f |art/stop| functio|
|00002210| 6e 73 7d 0a 20 09 20 20 | 20 20 5c 73 75 62 73 75 |ns}. . | \subsu|
|00002220| 62 73 65 63 74 69 6f 6e | 7b 63 66 6f 72 6d 73 5c |bsection|{cforms\|
|00002230| 5f 69 6e 69 74 7d 20 49 | 6e 69 74 69 61 74 65 20 |_init} I|nitiate |
|00002240| 43 46 6f 72 6d 73 2c 20 | 74 68 69 73 20 6d 75 73 |CForms, |this mus|
|00002250| 74 20 62 65 20 64 6f 6e | 65 0a 09 09 62 65 66 6f |t be don|e...befo|
|00002260| 72 65 20 61 6e 79 20 63 | 66 6f 72 6d 73 20 66 75 |re any c|forms fu|
|00002270| 6e 63 74 69 6f 6e 73 20 | 63 61 6e 20 62 65 20 63 |nctions |can be c|
|00002280| 61 6c 6c 65 64 2e 0a 09 | 20 20 20 20 20 20 20 20 |alled...| |
|00002290| 5c 73 79 6e 6f 70 73 79 | 73 7b 69 6e 74 20 63 66 |\synopsy|s{int cf|
|000022a0| 6f 72 6d 73 5c 5f 69 6e | 69 74 28 76 6f 69 64 29 |orms\_in|it(void)|
|000022b0| 7d 0a 0a 09 20 20 20 20 | 5c 73 75 62 73 75 62 73 |}... |\subsubs|
|000022c0| 65 63 74 69 6f 6e 7b 63 | 66 6f 72 6d 73 5c 5f 65 |ection{c|forms\_e|
|000022d0| 6e 64 7d 20 53 74 6f 70 | 20 43 46 6f 72 6d 73 2e |nd} Stop| CForms.|
|000022e0| 0a 09 09 5c 73 79 6e 6f | 70 73 79 73 7b 69 6e 74 |...\syno|psys{int|
|000022f0| 20 63 66 6f 72 6d 73 5c | 5f 65 6e 64 28 76 6f 69 | cforms\|_end(voi|
|00002300| 64 29 7d 0a 0a 09 20 20 | 20 20 5c 73 75 62 73 75 |d)}... | \subsu|
|00002310| 62 73 65 63 74 69 6f 6e | 7b 63 66 6f 72 6d 73 5c |bsection|{cforms\|
|00002320| 5f 72 65 66 72 65 73 68 | 7d 20 52 65 66 72 65 73 |_refresh|} Refres|
|00002330| 68 20 74 68 65 20 43 46 | 6f 72 6d 73 20 73 63 72 |h the CF|orms scr|
|00002340| 65 65 6e 2e 0a 09 09 5c | 73 79 6e 6f 70 73 79 73 |een....\|synopsys|
|00002350| 7b 76 6f 69 64 20 63 66 | 6f 72 6d 73 5c 5f 73 79 |{void cf|orms\_sy|
|00002360| 73 74 65 6d 28 76 6f 69 | 64 29 7d 0a 0a 09 20 20 |stem(voi|d)}... |
|00002370| 20 20 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e | \subsu|bsection|
|00002380| 7b 63 66 6f 72 6d 73 5c | 5f 73 79 73 74 65 6d 7d |{cforms\|_system}|
|00002390| 20 52 75 6e 20 61 20 6f | 70 65 72 61 74 69 6e 67 | Run a o|perating|
|000023a0| 20 73 79 73 74 65 6d 20 | 63 6f 6d 6d 61 6e 64 2e | system |command.|
|000023b0| 0a 09 09 5c 73 79 6e 6f | 70 73 79 73 7b 69 6e 74 |...\syno|psys{int|
|000023c0| 20 63 66 6f 72 6d 73 5c | 5f 73 79 73 74 65 6d 28 | cforms\|_system(|
|000023d0| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 63 6f 6d 6d |const ch|ar *comm|
|000023e0| 61 6e 64 2c 20 63 6f 6e | 73 74 20 63 68 61 72 20 |and, con|st char |
|000023f0| 2a 70 72 6f 6d 70 74 29 | 7d 20 5c 5c 0a 09 09 54 |*prompt)|} \\...T|
|00002400| 68 69 73 20 77 69 6c 6c | 20 72 75 6e 20 61 20 6f |his will| run a o|
|00002410| 70 65 72 61 74 69 6e 67 | 20 73 79 73 74 65 6d 20 |perating| system |
|00002420| 63 6f 6d 6d 61 6e 64 20 | 77 69 74 68 6f 75 74 20 |command |without |
|00002430| 64 65 73 74 72 6f 79 69 | 6e 67 0a 09 09 74 68 65 |destroyi|ng...the|
|00002440| 20 73 63 72 65 65 6e 2e | 20 42 65 66 6f 72 65 20 | screen.| Before |
|00002450| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 69 73 20 65 |the comm|and is e|
|00002460| 78 65 63 75 74 65 64 20 | 74 68 65 20 73 63 72 65 |xecuted |the scre|
|00002470| 65 6e 20 69 73 20 63 6c | 65 61 72 65 64 0a 09 09 |en is cl|eared...|
|00002480| 61 6e 64 20 75 70 6f 6e | 20 63 6f 6d 70 6c 65 74 |and upon| complet|
|00002490| 69 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 20 77 |ion the |screen w|
|000024a0| 69 6c 6c 20 62 65 20 72 | 65 64 72 61 77 6e 2e 20 |ill be r|edrawn. |
|000024b0| 49 66 20 74 68 65 0a 09 | 09 7b 5c 65 6d 20 70 72 |If the..|.{\em pr|
|000024c0| 6f 6d 70 74 7d 20 69 73 | 20 6e 6f 74 20 4e 55 4c |ompt} is| not NUL|
|000024d0| 4c 20 74 68 65 6e 20 74 | 68 65 20 72 6f 75 74 69 |L then t|he routi|
|000024e0| 6e 65 20 77 69 6c 6c 20 | 61 6c 73 6f 20 70 72 69 |ne will |also pri|
|000024f0| 6e 74 20 74 68 65 0a 09 | 09 70 72 6f 6d 70 74 20 |nt the..|.prompt |
|00002500| 61 6e 64 20 77 61 69 6e | 74 20 75 6e 74 69 6c 20 |and wain|t until |
|00002510| 75 73 65 72 20 70 72 65 | 73 73 65 73 20 74 68 65 |user pre|sses the|
|00002520| 20 72 65 74 75 72 6e 20 | 6b 65 79 2e 0a 0a 20 09 | return |key... .|
|00002530| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 50 69 63 74 |\subsect|ion{Pict|
|00002540| 75 72 65 20 66 75 6e 63 | 74 69 6f 6e 73 7d 0a 20 |ure func|tions}. |
|00002550| 09 20 20 20 20 5c 73 75 | 62 73 75 62 73 65 63 74 |. \su|bsubsect|
|00002560| 69 6f 6e 7b 70 69 63 5c | 5f 63 61 6c 6c 7d 20 43 |ion{pic\|_call} C|
|00002570| 61 6c 6c 20 70 69 63 74 | 75 72 65 2e 0a 09 20 20 |all pict|ure... |
|00002580| 20 20 20 20 20 5c 73 79 | 6e 6f 70 73 79 73 7b 69 | \sy|nopsys{i|
|00002590| 6e 74 20 70 69 63 5c 5f | 63 61 6c 6c 28 73 74 72 |nt pic\_|call(str|
|000025a0| 75 63 74 20 70 69 63 74 | 75 72 65 20 2a 2c 20 66 |uct pict|ure *, f|
|000025b0| 69 65 6c 64 20 2a 29 7d | 5c 5c 0a 09 09 57 68 65 |ield *)}|\\...Whe|
|000025c0| 72 65 20 70 69 63 74 75 | 72 65 20 69 73 20 61 20 |re pictu|re is a |
|000025d0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 70 |pointer |to the p|
|000025e0| 69 63 74 75 72 65 20 74 | 6f 20 63 61 6c 6c 20 61 |icture t|o call a|
|000025f0| 6e 64 20 66 69 65 6c 64 | 0a 09 09 69 73 20 77 68 |nd field|...is wh|
|00002600| 65 72 65 20 74 68 65 20 | 63 75 72 73 6f 72 20 6c |ere the |cursor l|
|00002610| 61 6e 64 73 20 6f 6e 2c | 20 4e 55 4c 4c 20 6d 65 |ands on,| NULL me|
|00002620| 61 6e 73 20 74 68 65 20 | 66 69 72 73 74 20 66 69 |ans the |first fi|
|00002630| 65 6c 64 20 69 6e 0a 09 | 09 70 69 63 74 75 72 65 |eld in..|.picture|
|00002640| 2e 0a 0a 09 20 20 20 20 | 5c 73 75 62 73 75 62 73 |.... |\subsubs|
|00002650| 65 63 74 69 6f 6e 7b 70 | 69 63 5c 5f 63 6c 65 61 |ection{p|ic\_clea|
|00002660| 72 7d 20 43 6c 65 61 72 | 20 61 6c 6c 20 66 69 65 |r} Clear| all fie|
|00002670| 6c 64 73 20 66 6f 72 20 | 70 69 63 74 75 72 65 2e |lds for |picture.|
|00002680| 0a 09 09 5c 73 79 6e 6f | 70 73 79 73 7b 69 6e 74 |...\syno|psys{int|
|00002690| 20 70 69 63 5c 5f 63 6c | 65 61 72 28 73 74 72 75 | pic\_cl|ear(stru|
|000026a0| 63 74 20 70 69 63 74 75 | 72 65 20 2a 29 7d 5c 5c |ct pictu|re *)}\\|
|000026b0| 0a 09 09 49 66 20 70 69 | 63 74 75 72 65 20 69 73 |...If pi|cture is|
|000026c0| 20 4e 55 4c 4c 20 63 75 | 72 72 65 6e 74 20 70 69 | NULL cu|rrent pi|
|000026d0| 63 74 75 72 65 20 69 73 | 20 63 6c 65 61 72 65 64 |cture is| cleared|
|000026e0| 2e 0a 0a 09 20 20 20 20 | 5c 73 75 62 73 75 62 73 |.... |\subsubs|
|000026f0| 65 63 74 69 6f 6e 7b 70 | 69 63 5c 5f 6c 65 61 76 |ection{p|ic\_leav|
|00002700| 65 7d 20 4c 65 61 76 65 | 20 63 75 72 72 65 6e 74 |e} Leave| current|
|00002710| 20 70 69 63 74 75 72 65 | 20 61 66 74 65 72 20 63 | picture| after c|
|00002720| 75 72 72 65 6e 74 0a 09 | 09 65 76 65 6e 74 20 68 |urrent..|.event h|
|00002730| 61 73 20 66 69 6e 69 73 | 68 65 64 2e 0a 09 09 5c |as finis|hed....\|
|00002740| 73 79 6e 6f 70 73 79 73 | 7b 69 6e 74 20 70 69 63 |synopsys|{int pic|
|00002750| 5c 5f 6c 65 61 76 65 28 | 76 6f 69 64 29 7d 0a 0a |\_leave(|void)}..|
|00002760| 09 20 20 20 20 5c 73 75 | 62 73 75 62 73 65 63 74 |. \su|bsubsect|
|00002770| 69 6f 6e 7b 70 69 63 74 | 75 72 65 7d 20 47 65 74 |ion{pict|ure} Get|
|00002780| 20 70 69 63 74 75 72 65 | 20 77 69 74 68 20 6e 61 | picture| with na|
|00002790| 6d 65 2e 0a 09 09 5c 73 | 79 6e 6f 70 73 79 73 7b |me....\s|ynopsys{|
|000027a0| 73 74 72 75 63 74 20 70 | 69 63 74 75 72 65 20 2a |struct p|icture *|
|000027b0| 70 69 63 74 75 72 65 28 | 63 68 61 72 20 2a 66 6d |picture(|char *fm|
|000027c0| 74 2c 20 2e 2e 2e 29 7d | 5c 5c 0a 09 09 52 65 74 |t, ...)}|\\...Ret|
|000027d0| 75 72 6e 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |urns a p|ointer t|
|000027e0| 6f 20 61 20 70 69 63 74 | 75 72 65 20 77 69 74 68 |o a pict|ure with|
|000027f0| 20 74 68 65 20 6e 61 6d | 65 20 67 65 6e 65 72 61 | the nam|e genera|
|00002800| 74 65 64 0a 09 09 77 69 | 74 68 20 27 66 6d 74 27 |ted...wi|th 'fmt'|
|00002810| 20 61 6e 64 20 69 74 73 | 20 61 72 67 75 6d 65 6e | and its| argumen|
|00002820| 74 73 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 20 |ts the s|ame way |
|00002830| 74 68 61 74 20 70 72 69 | 6e 74 66 20 77 6f 72 6b |that pri|ntf work|
|00002840| 73 2e 0a 0a 09 5c 73 75 | 62 73 65 63 74 69 6f 6e |s....\su|bsection|
|00002850| 7b 46 69 65 6c 64 20 66 | 75 6e 63 74 69 6f 6e 73 |{Field f|unctions|
|00002860| 7d 0a 09 20 20 20 20 5c | 73 75 62 73 75 62 73 65 |}.. \|subsubse|
|00002870| 63 74 69 6f 6e 7b 66 69 | 65 6c 64 7d 20 47 65 74 |ction{fi|eld} Get|
|00002880| 20 66 69 65 6c 64 20 77 | 69 74 68 20 6e 61 6d 65 | field w|ith name|
|00002890| 0a 09 09 5c 73 79 6e 6f | 70 73 79 73 7b 73 74 72 |...\syno|psys{str|
|000028a0| 75 63 74 20 66 69 65 6c | 64 20 2a 66 69 65 6c 64 |uct fiel|d *field|
|000028b0| 28 63 68 61 72 20 2a 66 | 6d 74 2c 20 2e 2e 2e 29 |(char *f|mt, ...)|
|000028c0| 7d 5c 5c 0a 09 09 52 65 | 74 75 72 6e 73 20 61 20 |}\\...Re|turns a |
|000028d0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 20 66 69 65 |pointer |to a fie|
|000028e0| 6c 64 20 77 69 74 68 20 | 74 68 65 20 6e 61 6d 65 |ld with |the name|
|000028f0| 20 67 65 6e 65 72 61 74 | 65 64 0a 09 09 77 69 74 | generat|ed...wit|
|00002900| 68 20 27 66 6d 74 27 20 | 61 6e 64 20 69 74 73 20 |h 'fmt' |and its |
|00002910| 61 72 67 75 6d 65 6e 74 | 73 20 74 68 65 20 73 61 |argument|s the sa|
|00002920| 6d 65 20 77 61 79 20 74 | 68 61 74 20 70 72 69 6e |me way t|hat prin|
|00002930| 74 66 20 77 6f 72 6b 73 | 2e 0a 0a 09 09 49 66 20 |tf works|.....If |
|00002940| 74 68 65 20 66 69 65 6c | 64 20 6e 61 6d 65 20 69 |the fiel|d name i|
|00002950| 73 20 70 72 65 70 65 6e | 64 65 64 20 62 79 20 74 |s prepen|ded by t|
|00002960| 68 65 20 70 69 63 74 75 | 72 65 20 6e 61 6d 65 20 |he pictu|re name |
|00002970| 61 6e 64 20 61 0a 09 09 | 63 6f 6c 6f 6e 2c 20 69 |and a...|colon, i|
|00002980| 2e 65 2e 20 20 22 70 69 | 63 74 75 72 65 3a 66 69 |.e. "pi|cture:fi|
|00002990| 65 6c 64 22 2c 20 61 20 | 66 69 65 6c 64 20 63 61 |eld", a |field ca|
|000029a0| 6e 20 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 61 6e |n be fou|nd in an|
|000029b0| 6f 74 68 65 72 0a 09 09 | 70 69 63 74 75 72 65 20 |other...|picture |
|000029c0| 74 68 61 6e 20 63 75 72 | 72 65 6e 74 20 70 69 63 |than cur|rent pic|
|000029d0| 74 75 72 65 2e 0a 09 09 | 0a 09 20 20 20 20 5c 73 |ture....|.. \s|
|000029e0| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 7b 66 6c 64 |ubsubsec|tion{fld|
|000029f0| 5c 5f 69 73 65 6d 70 74 | 79 7d 20 43 68 65 63 6b |\_isempt|y} Check|
|00002a00| 20 69 66 20 66 69 65 6c | 64 20 69 73 20 65 6d 70 | if fiel|d is emp|
|00002a10| 74 79 2c 20 69 2e 65 2e | 0a 09 09 66 75 6c 6c 20 |ty, i.e.|...full |
|00002a20| 6f 66 20 73 70 61 63 65 | 73 2c 20 74 61 62 73 20 |of space|s, tabs |
|00002a30| 6f 72 20 6e 75 6c 6c 2e | 0a 09 09 5c 73 79 6e 6f |or null.|...\syno|
|00002a40| 70 73 79 73 7b 69 6e 74 | 20 66 6c 64 5c 5f 69 73 |psys{int| fld\_is|
|00002a50| 65 6d 70 74 79 28 73 74 | 72 75 63 74 20 66 69 65 |empty(st|ruct fie|
|00002a60| 6c 64 20 2a 29 7d 5c 5c | 0a 09 09 52 65 74 75 72 |ld *)}\\|...Retur|
|00002a70| 6e 73 20 54 52 55 45 20 | 6f 72 20 46 41 4c 53 45 |ns TRUE |or FALSE|
|00002a80| 20 63 6f 6e 64 69 74 69 | 6f 6e 2e 0a 0a 09 20 20 | conditi|on.... |
|00002a90| 20 20 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e | \subsu|bsection|
|00002aa0| 7b 66 6c 64 5c 5f 66 69 | 72 73 74 7d 20 46 69 6e |{fld\_fi|rst} Fin|
|00002ab0| 64 20 66 69 72 73 74 20 | 66 69 65 6c 64 20 6f 66 |d first |field of|
|00002ac0| 20 70 69 63 74 75 72 65 | 2e 0a 09 09 5c 73 79 6e | picture|....\syn|
|00002ad0| 6f 70 73 79 73 7b 73 74 | 72 75 63 74 20 66 69 65 |opsys{st|ruct fie|
|00002ae0| 6c 64 20 2a 66 6c 64 5c | 5f 66 69 72 73 74 28 76 |ld *fld\|_first(v|
|00002af0| 6f 69 64 29 7d 0a 0a 09 | 20 20 20 20 5c 73 75 62 |oid)}...| \sub|
|00002b00| 73 75 62 73 65 63 74 69 | 6f 6e 7b 66 6c 64 5c 5f |subsecti|on{fld\_|
|00002b10| 6c 61 73 74 7d 20 46 69 | 6e 64 20 6c 61 73 74 20 |last} Fi|nd last |
|00002b20| 66 69 65 6c 64 20 6f 66 | 20 70 69 63 74 75 72 65 |field of| picture|
|00002b30| 2e 0a 09 09 5c 73 79 6e | 6f 70 73 79 73 7b 73 74 |....\syn|opsys{st|
|00002b40| 72 75 63 74 20 66 69 65 | 6c 64 20 2a 66 6c 64 5c |ruct fie|ld *fld\|
|00002b50| 5f 6c 61 73 74 28 76 6f | 69 64 29 7d 0a 0a 09 20 |_last(vo|id)}... |
|00002b60| 20 20 20 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f | \subs|ubsectio|
|00002b70| 6e 7b 66 6c 64 5c 5f 6e | 65 78 74 7d 20 46 69 6e |n{fld\_n|ext} Fin|
|00002b80| 64 20 6e 65 78 74 20 66 | 69 65 6c 64 20 66 6f 72 |d next f|ield for|
|00002b90| 20 70 69 63 74 75 72 65 | 2e 0a 09 09 5c 73 79 6e | picture|....\syn|
|00002ba0| 6f 70 73 79 73 7b 73 74 | 72 75 63 74 20 66 69 65 |opsys{st|ruct fie|
|00002bb0| 6c 64 20 2a 66 6c 64 5c | 5f 6e 65 78 74 28 73 74 |ld *fld\|_next(st|
|00002bc0| 72 75 63 74 20 66 69 65 | 6c 64 20 2a 29 7d 5c 5c |ruct fie|ld *)}\\|
|00002bd0| 0a 09 09 52 65 74 75 72 | 6e 73 20 74 68 65 20 66 |...Retur|ns the f|
|00002be0| 69 65 6c 64 20 61 66 74 | 65 72 20 66 69 65 6c 64 |ield aft|er field|
|00002bf0| 20 67 69 76 65 6e 20 62 | 79 20 61 72 67 75 6d 65 | given b|y argume|
|00002c00| 6e 74 20 28 6f 72 0a 09 | 09 63 75 72 72 65 6e 74 |nt (or..|.current|
|00002c10| 20 66 69 65 6c 64 20 69 | 66 20 4e 55 4c 4c 29 2e | field i|f NULL).|
|00002c20| 0a 09 09 0a 09 20 20 20 | 20 5c 73 75 62 73 75 62 |..... | \subsub|
|00002c30| 73 65 63 74 69 6f 6e 7b | 66 6c 64 5c 5f 70 72 65 |section{|fld\_pre|
|00002c40| 76 69 6f 75 73 7d 20 46 | 69 6e 64 20 70 72 65 76 |vious} F|ind prev|
|00002c50| 69 6f 75 73 20 66 69 65 | 6c 64 20 66 6f 72 20 70 |ious fie|ld for p|
|00002c60| 69 63 74 75 72 65 2e 0a | 09 09 5c 73 79 6e 6f 70 |icture..|..\synop|
|00002c70| 73 79 73 7b 73 74 72 75 | 63 74 20 66 69 65 6c 64 |sys{stru|ct field|
|00002c80| 20 2a 66 6c 64 5c 5f 70 | 72 65 76 69 6f 75 73 28 | *fld\_p|revious(|
|00002c90| 73 74 72 75 63 74 20 66 | 69 65 6c 64 20 2a 29 7d |struct f|ield *)}|
|00002ca0| 5c 5c 0a 09 09 52 65 74 | 75 72 6e 73 20 74 68 65 |\\...Ret|urns the|
|00002cb0| 20 66 69 65 6c 64 20 62 | 65 72 66 6f 72 65 20 66 | field b|erfore f|
|00002cc0| 69 65 6c 64 20 67 69 76 | 65 6e 20 62 79 20 61 72 |ield giv|en by ar|
|00002cd0| 67 75 6d 65 6e 74 20 28 | 6f 72 0a 09 09 63 75 72 |gument (|or...cur|
|00002ce0| 72 65 6e 74 20 66 69 65 | 6c 64 20 69 66 20 4e 55 |rent fie|ld if NU|
|00002cf0| 4c 4c 29 2e 0a 0a 09 20 | 20 20 20 5c 73 75 62 73 |LL).... | \subs|
|00002d00| 75 62 73 65 63 74 69 6f | 6e 7b 66 6c 64 5c 5f 6c |ubsectio|n{fld\_l|
|00002d10| 65 66 74 7d 20 46 69 6e | 64 20 6c 65 66 74 20 66 |eft} Fin|d left f|
|00002d20| 69 65 6c 64 2e 0a 09 09 | 5c 73 79 6e 6f 70 73 79 |ield....|\synopsy|
|00002d30| 73 7b 73 74 72 75 63 74 | 20 66 69 65 6c 64 20 2a |s{struct| field *|
|00002d40| 66 6c 64 5c 5f 6c 65 66 | 74 28 73 74 72 75 63 74 |fld\_lef|t(struct|
|00002d50| 20 66 69 65 6c 64 20 2a | 29 7d 5c 5c 0a 09 09 52 | field *|)}\\...R|
|00002d60| 65 74 75 72 6e 73 20 74 | 68 65 20 66 69 65 6c 64 |eturns t|he field|
|00002d70| 20 74 6f 20 74 68 65 20 | 6c 65 66 74 20 6f 66 20 | to the |left of |
|00002d80| 74 68 65 20 66 69 65 6c | 64 20 67 69 76 65 6e 20 |the fiel|d given |
|00002d90| 62 79 20 61 72 67 75 6d | 65 6e 74 0a 09 09 28 6f |by argum|ent...(o|
|00002da0| 72 20 63 75 72 72 65 6e | 74 20 66 69 65 6c 64 20 |r curren|t field |
|00002db0| 69 66 20 4e 55 4c 4c 29 | 2e 0a 0a 09 20 20 20 20 |if NULL)|.... |
|00002dc0| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 7b 66 |\subsubs|ection{f|
|00002dd0| 6c 64 5c 5f 72 69 67 68 | 74 7d 20 46 69 6e 64 20 |ld\_righ|t} Find |
|00002de0| 72 69 67 68 74 20 66 69 | 65 6c 64 2e 0a 09 09 5c |right fi|eld....\|
|00002df0| 73 79 6e 6f 70 73 79 73 | 7b 73 74 72 75 63 74 20 |synopsys|{struct |
|00002e00| 66 69 65 6c 64 20 2a 66 | 6c 64 5c 5f 72 69 67 68 |field *f|ld\_righ|
|00002e10| 74 28 73 74 72 75 63 74 | 20 66 69 65 6c 64 20 2a |t(struct| field *|
|00002e20| 29 7d 5c 5c 0a 09 09 52 | 65 74 75 72 6e 73 20 74 |)}\\...R|eturns t|
|00002e30| 68 65 20 66 69 65 6c 64 | 20 74 6f 20 74 68 65 20 |he field| to the |
|00002e40| 72 69 67 68 74 20 6f 66 | 20 74 68 65 20 66 69 65 |right of| the fie|
|00002e50| 6c 64 20 67 69 76 65 6e | 20 62 79 20 61 72 67 75 |ld given| by argu|
|00002e60| 6d 65 6e 74 0a 09 09 28 | 6f 72 20 63 75 72 72 65 |ment...(|or curre|
|00002e70| 6e 74 20 66 69 65 6c 64 | 20 69 66 20 4e 55 4c 4c |nt field| if NULL|
|00002e80| 29 2e 0a 0a 09 20 20 20 | 20 5c 73 75 62 73 75 62 |).... | \subsub|
|00002e90| 73 65 63 74 69 6f 6e 7b | 66 6c 64 5c 5f 75 70 7d |section{|fld\_up}|
|00002ea0| 20 46 69 6e 64 20 66 69 | 65 6c 64 20 61 62 6f 76 | Find fi|eld abov|
|00002eb0| 65 20 63 75 72 72 65 6e | 74 2e 0a 09 09 5c 73 79 |e curren|t....\sy|
|00002ec0| 6e 6f 70 73 79 73 7b 73 | 74 72 75 63 74 20 66 69 |nopsys{s|truct fi|
|00002ed0| 65 6c 64 20 2a 66 6c 64 | 5c 5f 75 70 28 73 74 72 |eld *fld|\_up(str|
|00002ee0| 75 63 74 20 66 69 65 6c | 64 20 2a 29 7d 5c 5c 0a |uct fiel|d *)}\\.|
|00002ef0| 09 09 52 65 74 75 72 6e | 73 20 74 68 65 20 66 69 |..Return|s the fi|
|00002f00| 65 6c 64 20 61 62 6f 76 | 65 20 74 68 65 20 66 69 |eld abov|e the fi|
|00002f10| 65 6c 64 20 67 69 76 65 | 6e 20 62 79 20 61 72 67 |eld give|n by arg|
|00002f20| 75 6d 65 6e 74 0a 09 09 | 28 6f 72 20 63 75 72 5c |ument...|(or cur\|
|00002f30| 2d 72 65 6e 74 2e 5c 2d | 66 69 65 6c 64 20 69 66 |-rent.\-|field if|
|00002f40| 5c 2d 20 4e 55 4c 4c 29 | 2e 0a 0a 09 20 20 20 20 |\- NULL)|.... |
|00002f50| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 7b 66 |\subsubs|ection{f|
|00002f60| 6c 64 5c 5f 64 6f 77 6e | 7d 20 46 69 6e 64 20 66 |ld\_down|} Find f|
|00002f70| 69 65 6c 64 20 62 65 6c | 6f 77 20 63 75 72 72 65 |ield bel|ow curre|
|00002f80| 6e 74 2e 0a 09 09 5c 73 | 79 6e 6f 70 73 79 73 7b |nt....\s|ynopsys{|
|00002f90| 73 74 72 75 63 74 20 66 | 69 65 6c 64 20 2a 66 6c |struct f|ield *fl|
|00002fa0| 64 5c 5f 64 6f 77 6e 28 | 73 74 72 75 63 74 20 66 |d\_down(|struct f|
|00002fb0| 69 65 6c 64 20 2a 29 7d | 5c 5c 0a 09 09 52 65 74 |ield *)}|\\...Ret|
|00002fc0| 75 72 6e 73 20 74 68 65 | 20 66 69 65 6c 64 20 62 |urns the| field b|
|00002fd0| 65 6c 6f 77 20 74 68 65 | 20 66 69 65 6c 64 20 67 |elow the| field g|
|00002fe0| 69 76 65 6e 20 62 79 20 | 61 72 67 75 6d 65 6e 74 |iven by |argument|
|00002ff0| 0a 09 09 28 6f 72 20 63 | 75 72 72 65 6e 74 20 5c |...(or c|urrent \|
|00003000| 2d 66 69 65 6c 64 20 69 | 66 5c 2d 20 4e 55 4c 4c |-field i|f\- NULL|
|00003010| 29 2e 0a 0a 09 20 20 20 | 20 5c 73 75 62 73 75 62 |).... | \subsub|
|00003020| 73 65 63 74 69 6f 6e 7b | 66 6c 64 5c 5f 73 65 74 |section{|fld\_set|
|00003030| 7d 20 53 65 74 20 76 61 | 6c 75 65 20 66 6f 72 20 |} Set va|lue for |
|00003040| 66 69 65 6c 64 2e 0a 09 | 09 5c 73 79 6e 6f 70 73 |field...|.\synops|
|00003050| 79 73 7b 69 6e 74 20 66 | 6c 64 5c 5f 73 65 74 28 |ys{int f|ld\_set(|
|00003060| 73 74 72 75 63 74 20 66 | 69 65 6c 64 20 2a 2c 20 |struct f|ield *, |
|00003070| 63 68 61 72 20 2a 29 7d | 5c 5c 0a 09 09 49 66 20 |char *)}|\\...If |
|00003080| 66 69 65 6c 64 20 69 73 | 20 4e 55 4c 4c 20 73 65 |field is| NULL se|
|00003090| 74 20 76 61 6c 75 65 20 | 66 6f 72 20 63 75 72 72 |t value |for curr|
|000030a0| 65 6e 74 20 66 69 65 6c | 64 2e 0a 0a 09 20 20 20 |ent fiel|d.... |
|000030b0| 20 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 7b | \subsub|section{|
|000030c0| 66 6c 64 5c 5f 6e 73 65 | 74 7d 20 53 65 74 20 76 |fld\_nse|t} Set v|
|000030d0| 61 6c 75 65 20 66 6f 72 | 20 66 69 65 6c 64 20 62 |alue for| field b|
|000030e0| 75 74 20 6d 61 78 20 6e | 20 63 68 61 72 73 2e 0a |ut max n| chars..|
|000030f0| 09 09 5c 73 79 6e 6f 70 | 73 79 73 7b 69 6e 74 20 |..\synop|sys{int |
|00003100| 66 6c 64 5c 5f 6e 73 65 | 74 28 73 74 72 75 63 74 |fld\_nse|t(struct|
|00003110| 20 66 69 65 6c 64 20 2a | 2c 20 63 68 61 72 20 2a | field *|, char *|
|00003120| 29 7d 5c 5c 0a 09 09 49 | 66 20 66 69 65 6c 64 20 |)}\\...I|f field |
|00003130| 69 73 20 4e 55 4c 4c 20 | 73 65 74 20 76 61 6c 75 |is NULL |set valu|
|00003140| 65 20 66 6f 72 20 63 75 | 72 72 65 6e 74 2e 66 69 |e for cu|rrent.fi|
|00003150| 65 6c 64 2e 0a 0a 09 20 | 20 20 20 5c 73 75 62 73 |eld.... | \subs|
|00003160| 75 62 73 65 63 74 69 6f | 6e 7b 66 6c 64 5c 5f 67 |ubsectio|n{fld\_g|
|00003170| 65 74 7d 20 47 65 74 20 | 76 61 6c 75 65 20 6f 66 |et} Get |value of|
|00003180| 20 66 69 65 6c 64 2e 0a | 09 09 5c 73 79 6e 6f 70 | field..|..\synop|
|00003190| 73 79 73 7b 63 68 61 72 | 20 2a 66 6c 64 5c 5f 67 |sys{char| *fld\_g|
|000031a0| 65 74 28 73 74 72 75 63 | 74 20 66 69 65 6c 64 20 |et(struc|t field |
|000031b0| 2a 29 7d 5c 5c 0a 09 09 | 49 66 20 66 69 65 6c 64 |*)}\\...|If field|
|000031c0| 20 69 73 20 4e 55 4c 4c | 20 67 65 74 20 76 61 6c | is NULL| get val|
|000031d0| 75 65 20 66 6f 72 20 63 | 75 72 72 65 6e 74 20 66 |ue for c|urrent f|
|000031e0| 69 65 6c 64 2e 0a 0a 09 | 20 20 20 20 5c 73 75 62 |ield....| \sub|
|000031f0| 73 75 62 73 65 63 74 69 | 6f 6e 7b 66 6c 64 5c 5f |subsecti|on{fld\_|
|00003200| 67 65 74 5c 5f 74 72 69 | 6d 6d 65 64 7d 20 47 65 |get\_tri|mmed} Ge|
|00003210| 74 20 76 61 6c 75 65 20 | 6f 66 20 66 69 65 6c 64 |t value |of field|
|00003220| 20 77 69 74 68 20 74 72 | 69 6d 6d 65 64 20 62 6c | with tr|immed bl|
|00003230| 61 6e 6b 73 2e 0a 09 09 | 5c 73 79 6e 6f 70 73 79 |anks....|\synopsy|
|00003240| 73 7b 63 68 61 72 20 2a | 66 6c 64 5c 5f 67 65 74 |s{char *|fld\_get|
|00003250| 28 73 74 72 75 63 74 20 | 66 69 65 6c 64 20 2a 29 |(struct |field *)|
|00003260| 7d 5c 5c 0a 09 09 54 68 | 69 73 20 72 6f 75 74 69 |}\\...Th|is routi|
|00003270| 6e 65 20 77 6f 72 6b 73 | 20 6c 69 6b 65 20 7b 5c |ne works| like {\|
|00003280| 65 6d 20 66 6c 64 5c 5f | 67 65 74 7d 20 65 78 65 |em fld\_|get} exe|
|00003290| 70 74 20 74 68 61 74 20 | 6c 65 61 64 69 6e 67 20 |pt that |leading |
|000032a0| 61 6e 64 20 74 72 61 69 | 6c 69 6e 67 20 62 6c 61 |and trai|ling bla|
|000032b0| 6e 6b 73 0a 09 09 69 73 | 20 72 65 6d 6f 76 65 64 |nks...is| removed|
|000032c0| 20 69 6e 20 74 68 65 20 | 72 65 74 75 72 6e 65 64 | in the |returned|
|000032d0| 20 73 74 72 69 6e 67 2e | 0a 09 09 49 66 20 66 69 | string.|...If fi|
|000032e0| 65 6c 64 20 69 73 20 4e | 55 4c 4c 20 67 65 74 20 |eld is N|ULL get |
|000032f0| 76 61 6c 75 65 20 66 6f | 72 20 63 75 72 72 65 6e |value fo|r curren|
|00003300| 74 20 66 69 65 6c 64 2e | 0a 0a 09 20 20 20 20 5c |t field.|... \|
|00003310| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 7b 66 6c |subsubse|ction{fl|
|00003320| 64 5c 5f 6c 65 6e 7d 20 | 52 65 74 75 72 6e 20 6c |d\_len} |Return l|
|00003330| 65 6e 67 74 68 20 6f 66 | 20 66 69 65 6c 64 2e 0a |ength of| field..|
|00003340| 09 09 5c 73 79 6e 6f 70 | 73 79 73 7b 69 6e 74 20 |..\synop|sys{int |
|00003350| 66 6c 64 5c 5f 6c 65 6e | 28 73 74 72 75 63 74 20 |fld\_len|(struct |
|00003360| 66 69 65 6c 64 20 2a 29 | 7d 5c 5c 0a 09 09 49 66 |field *)|}\\...If|
|00003370| 20 66 69 65 6c 64 20 69 | 73 20 4e 55 4c 4c 20 72 | field i|s NULL r|
|00003380| 65 74 75 72 6e 20 6c 65 | 6e 67 74 68 20 66 6f 72 |eturn le|ngth for|
|00003390| 20 63 75 72 72 65 6e 74 | 20 66 69 65 6c 64 2e 0a | current| field..|
|000033a0| 09 09 0a 09 20 20 20 20 | 5c 73 75 62 73 75 62 73 |.... |\subsubs|
|000033b0| 65 63 74 69 6f 6e 7b 66 | 6c 64 5c 5f 6e 61 6d 65 |ection{f|ld\_name|
|000033c0| 7d 20 52 65 74 75 72 6e | 20 6e 61 6d 65 20 6f 66 |} Return| name of|
|000033d0| 20 61 20 66 69 65 6c 64 | 2e 0a 09 09 5c 73 79 6e | a field|....\syn|
|000033e0| 6f 70 73 79 73 7b 63 68 | 61 72 20 2a 66 6c 64 5c |opsys{ch|ar *fld\|
|000033f0| 5f 6e 61 6d 65 28 73 74 | 72 75 63 74 20 66 69 65 |_name(st|ruct fie|
|00003400| 6c 64 20 2a 29 7d 5c 5c | 0a 09 09 49 66 20 66 69 |ld *)}\\|...If fi|
|00003410| 65 6c 64 20 69 73 20 4e | 55 4c 4c 20 72 65 74 75 |eld is N|ULL retu|
|00003420| 72 6e 20 6e 61 6d 65 20 | 6f 66 20 63 75 72 72 65 |rn name |of curre|
|00003430| 6e 74 20 66 69 65 6c 64 | 2e 0a 09 09 0a 09 20 20 |nt field|...... |
|00003440| 20 20 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e | \subsu|bsection|
|00003450| 7b 66 6c 64 5c 5f 69 73 | 6d 6f 64 69 66 69 65 64 |{fld\_is|modified|
|00003460| 7d 20 52 65 74 75 72 6e | 20 74 72 75 65 20 69 66 |} Return| true if|
|00003470| 20 66 69 65 6c 64 20 68 | 61 73 20 62 65 65 6e 0a | field h|as been.|
|00003480| 09 09 6d 6f 64 69 66 69 | 65 64 20 73 69 6e 63 65 |..modifi|ed since|
|00003490| 20 6c 61 73 74 20 66 6c | 64 5c 5f 73 65 74 20 6f | last fl|d\_set o|
|000034a0| 72 20 66 6c 64 5c 5f 6e | 73 65 74 2e 0a 09 09 5c |r fld\_n|set....\|
|000034b0| 73 79 6e 6f 70 73 79 73 | 7b 69 6e 74 20 66 6c 64 |synopsys|{int fld|
|000034c0| 5c 5f 69 73 6d 6f 64 69 | 66 69 65 64 28 73 74 72 |\_ismodi|fied(str|
|000034d0| 75 63 74 20 66 69 65 6c | 64 20 2a 29 7d 5c 5c 0a |uct fiel|d *)}\\.|
|000034e0| 09 09 49 66 20 66 69 65 | 6c 64 20 69 73 20 4e 55 |..If fie|ld is NU|
|000034f0| 4c 4c 20 72 65 74 75 72 | 6e 20 6d 6f 64 69 66 69 |LL retur|n modifi|
|00003500| 65 64 20 66 6f 72 20 63 | 75 72 72 65 6e 74 20 66 |ed for c|urrent f|
|00003510| 69 65 6c 64 2e 0a 09 09 | 0a 09 20 20 20 20 5c 73 |ield....|.. \s|
|00003520| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 7b 66 6c 64 |ubsubsec|tion{fld|
|00003530| 5c 5f 74 6f 75 63 68 7d | 20 4d 61 6b 65 20 66 69 |\_touch}| Make fi|
|00003540| 65 6c 64 20 6e 6f 74 20 | 6d 6f 64 69 66 69 65 64 |eld not |modified|
|00003550| 2e 0a 09 09 5c 73 79 6e | 6f 70 73 79 73 7b 69 6e |....\syn|opsys{in|
|00003560| 74 20 66 6c 64 5c 5f 74 | 6f 75 63 68 28 73 74 72 |t fld\_t|ouch(str|
|00003570| 75 63 74 20 66 69 65 6c | 64 20 2a 29 7d 5c 5c 0a |uct fiel|d *)}\\.|
|00003580| 09 09 49 66 20 66 69 65 | 6c 64 20 69 73 20 4e 55 |..If fie|ld is NU|
|00003590| 4c 4c 20 74 6f 75 63 68 | 20 63 75 72 72 65 6e 74 |LL touch| current|
|000035a0| 20 66 69 65 6c 64 2e 0a | 0a 09 20 20 20 20 5c 73 | field..|.. \s|
|000035b0| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 7b 66 6c 64 |ubsubsec|tion{fld|
|000035c0| 5c 5f 73 61 74 74 72 7d | 20 53 65 74 20 61 74 74 |\_sattr}| Set att|
|000035d0| 72 69 62 75 74 65 64 20 | 66 6f 72 20 61 20 66 69 |ributed |for a fi|
|000035e0| 65 6c 64 2e 0a 09 09 5c | 73 79 6e 6f 70 73 79 73 |eld....\|synopsys|
|000035f0| 7b 69 6e 74 20 66 6c 64 | 5c 5f 73 61 74 74 72 28 |{int fld|\_sattr(|
|00003600| 73 74 72 75 63 74 20 66 | 69 65 6c 64 20 2a 2c 20 |struct f|ield *, |
|00003610| 75 6e 73 69 67 6e 65 64 | 20 6c 6f 6e 67 29 7d 5c |unsigned| long)}\|
|00003620| 5c 0a 09 09 54 68 65 20 | 61 74 74 72 69 62 75 74 |\...The |attribut|
|00003630| 65 73 20 61 72 65 20 6f | 6e 6c 79 20 61 64 64 65 |es are o|nly adde|
|00003640| 64 20 74 6f 20 74 68 65 | 20 66 69 65 6c 64 2c 20 |d to the| field, |
|00003650| 74 6f 20 72 65 6d 6f 76 | 65 20 61 74 74 72 69 62 |to remov|e attrib|
|00003660| 75 74 65 73 0a 09 09 6f | 6e 65 20 6d 75 73 74 20 |utes...o|ne must |
|00003670| 75 73 65 20 7b 5c 65 6d | 20 66 6c 64 5c 5f 63 61 |use {\em| fld\_ca|
|00003680| 74 74 72 28 29 7d 2e 0a | 09 09 49 66 20 66 69 65 |ttr()}..|..If fie|
|00003690| 6c 64 20 69 73 20 4e 55 | 4c 4c 20 75 73 65 20 63 |ld is NU|LL use c|
|000036a0| 75 72 72 65 6e 74 20 66 | 69 65 6c 64 2e 0a 09 09 |urrent f|ield....|
|000036b0| 50 6f 73 73 69 62 6c 65 | 20 61 74 74 72 69 62 75 |Possible| attribu|
|000036c0| 74 65 73 20 61 72 65 3a | 0a 09 09 5c 62 65 67 69 |tes are:|...\begi|
|000036d0| 6e 7b 69 74 65 6d 69 7a | 65 7d 0a 09 09 5c 69 74 |n{itemiz|e}...\it|
|000036e0| 65 6d 5b 46 4c 44 5c 5f | 48 49 47 48 4c 49 47 48 |em[FLD\_|HIGHLIGH|
|000036f0| 54 5d 20 2d 20 54 75 72 | 6e 20 6f 6e 20 68 69 67 |T] - Tur|n on hig|
|00003700| 68 6c 69 67 68 74 69 6e | 67 20 6f 66 20 66 69 65 |hlightin|g of fie|
|00003710| 6c 64 2e 0a 09 09 5c 69 | 74 65 6d 5b 46 4c 44 5c |ld....\i|tem[FLD\|
|00003720| 5f 50 52 4f 54 45 43 54 | 45 44 5d 20 2d 20 4d 61 |_PROTECT|ED] - Ma|
|00003730| 6b 65 20 66 69 65 6c 64 | 20 69 6e 73 65 6e 73 69 |ke field| insensi|
|00003740| 74 69 76 65 20 66 6f 72 | 20 69 6e 70 75 74 2e 0a |tive for| input..|
|00003750| 09 09 5c 69 74 65 6d 5b | 46 4c 44 5c 5f 46 4f 52 |..\item[|FLD\_FOR|
|00003760| 42 49 44 44 45 4e 5d 20 | 2d 20 4d 61 6b 65 20 66 |BIDDEN] |- Make f|
|00003770| 69 65 6c 64 20 69 6c 6c | 65 67 61 6c 20 74 6f 20 |ield ill|egal to |
|00003780| 6d 6f 76 65 20 74 6f 2e | 20 49 66 20 74 68 65 20 |move to.| If the |
|00003790| 66 69 65 6c 64 20 6d 6f | 64 69 66 69 65 64 20 69 |field mo|dified i|
|000037a0| 73 20 63 75 72 72 65 6e | 74 20 66 69 65 6c 64 20 |s curren|t field |
|000037b0| 0a 09 09 09 09 09 74 68 | 65 6e 20 72 65 73 75 6c |......th|en resul|
|000037c0| 74 20 69 73 20 75 6e 64 | 65 66 69 6e 65 64 2e 0a |t is und|efined..|
|000037d0| 09 09 5c 69 74 65 6d 5b | 46 4c 44 5c 5f 49 4e 56 |..\item[|FLD\_INV|
|000037e0| 49 53 49 42 4c 45 5d 20 | 2d 20 4d 61 6b 65 20 66 |ISIBLE] |- Make f|
|000037f0| 69 65 6c 64 20 69 6e 76 | 69 73 69 62 6c 65 2e 0a |ield inv|isible..|
|00003800| 09 09 5c 65 6e 64 7b 69 | 74 65 6d 69 7a 65 7d 0a |..\end{i|temize}.|
|00003810| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 73 75 |. | \su|
|00003820| 62 73 75 62 73 65 63 74 | 69 6f 6e 7b 66 6c 64 5c |bsubsect|ion{fld\|
|00003830| 5f 63 61 74 74 72 7d 20 | 43 6c 65 61 72 20 61 74 |_cattr} |Clear at|
|00003840| 74 72 69 62 75 74 65 64 | 20 66 6f 72 20 61 20 66 |tributed| for a f|
|00003850| 69 65 6c 64 2e 0a 20 20 | 20 20 20 20 20 20 20 20 |ield.. | |
|00003860| 20 20 20 20 20 20 5c 73 | 79 6e 6f 70 73 79 73 7b | \s|ynopsys{|
|00003870| 69 6e 74 20 66 6c 64 5c | 5f 73 61 74 74 72 28 73 |int fld\|_sattr(s|
|00003880| 74 72 75 63 74 20 66 69 | 65 6c 64 20 2a 2c 20 75 |truct fi|eld *, u|
|00003890| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 29 7d 5c 5c |nsigned |long)}\\|
|000038a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000038b0| 20 49 66 20 66 69 65 6c | 64 20 69 73 20 4e 55 4c | If fiel|d is NUL|
|000038c0| 4c 20 75 73 65 20 63 75 | 72 72 65 6e 74 20 66 69 |L use cu|rrent fi|
|000038d0| 65 6c 64 2e 0a 20 20 20 | 20 20 20 20 20 20 20 20 |eld.. | |
|000038e0| 20 20 20 20 20 41 74 74 | 72 69 62 75 74 65 73 20 | Att|ributes |
|000038f0| 61 72 65 20 73 61 6d 65 | 20 61 73 20 66 6f 72 20 |are same| as for |
|00003900| 7b 5c 65 6d 20 66 6c 64 | 5c 5f 73 61 74 74 72 28 |{\em fld|\_sattr(|
|00003910| 29 7d 2e 0a 0a 20 09 5c | 73 75 62 73 65 63 74 69 |)}... .\|subsecti|
|00003920| 6f 6e 7b 47 65 6e 65 72 | 61 6c 20 66 75 6e 63 74 |on{Gener|al funct|
|00003930| 69 6f 6e 73 7d 0a 20 09 | 20 20 20 20 5c 73 75 62 |ions}. .| \sub|
|00003940| 73 75 62 73 65 63 74 69 | 6f 6e 7b 6d 65 73 73 61 |subsecti|on{messa|
|00003950| 67 65 7d 20 47 69 76 65 | 20 6d 65 73 73 61 67 65 |ge} Give| message|
|00003960| 20 28 6c 69 6e 65 20 32 | 34 29 2e 0a 09 09 5c 73 | (line 2|4)....\s|
|00003970| 79 6e 6f 70 73 79 73 7b | 69 6e 74 20 6d 65 73 73 |ynopsys{|int mess|
|00003980| 61 67 65 28 63 68 61 72 | 20 2a 66 6d 74 2c 20 2e |age(char| *fmt, .|
|00003990| 2e 2e 29 7d 0a 0a 09 20 | 20 20 20 5c 73 75 62 73 |..)}... | \subs|
|000039a0| 75 62 73 65 63 74 69 6f | 6e 7b 73 74 72 65 71 75 |ubsectio|n{strequ|
|000039b0| 7d 20 43 6f 6d 70 61 72 | 65 20 74 77 6f 20 73 74 |} Compar|e two st|
|000039c0| 72 69 6e 67 73 2c 20 62 | 75 74 20 63 61 73 65 20 |rings, b|ut case |
|000039d0| 69 6e 73 65 6e 73 69 74 | 69 76 65 2e 20 0a 09 09 |insensit|ive. ...|
|000039e0| 4f 74 68 65 72 77 68 69 | 73 65 20 74 68 65 20 73 |Otherwhi|se the s|
|000039f0| 61 6d 65 20 66 75 6e 63 | 74 69 6f 6e 61 6c 69 74 |ame func|tionalit|
|00003a00| 79 20 61 73 20 73 74 72 | 63 6d 70 28 29 2e 0a 09 |y as str|cmp()...|
|00003a10| 09 5c 73 79 6e 6f 70 73 | 79 73 7b 69 6e 74 20 73 |.\synops|ys{int s|
|00003a20| 74 72 65 71 75 28 63 68 | 61 72 20 2a 73 31 2c 20 |trequ(ch|ar *s1, |
|00003a30| 63 68 61 72 20 2a 73 32 | 29 7d 0a 0a 09 5c 73 75 |char *s2|)}...\su|
|00003a40| 62 73 65 63 74 69 6f 6e | 7b 47 6c 6f 62 61 6c 20 |bsection|{Global |
|00003a50| 76 61 72 69 61 62 6c 65 | 73 7d 0a 09 20 20 20 20 |variable|s}.. |
|00003a60| 54 68 65 65 73 65 20 74 | 77 6f 20 67 6c 6f 62 61 |Theese t|wo globa|
|00003a70| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 65 78 69 73 |l variab|les exis|
|00003a80| 74 73 20 66 6f 72 20 62 | 61 63 6b 77 61 72 64 20 |ts for b|ackward |
|00003a90| 63 6f 6d 70 61 62 69 6c | 69 74 79 20 6f 6e 6c 79 |compabil|ity only|
|00003aa0| 2c 20 0a 09 20 20 20 20 | 69 66 20 63 75 72 72 65 |, .. |if curre|
|00003ab0| 6e 74 20 66 69 65 6c 64 | 20 6f 72 20 63 75 72 72 |nt field| or curr|
|00003ac0| 65 6e 74 20 70 69 63 74 | 75 72 65 20 69 73 20 74 |ent pict|ure is t|
|00003ad0| 6f 20 62 65 20 72 65 66 | 65 72 65 6e 63 65 64 20 |o be ref|erenced |
|00003ae0| 61 20 4e 55 4c 4c 0a 09 | 20 20 20 20 70 6f 69 6e |a NULL..| poin|
|00003af0| 74 65 72 20 63 61 6e 20 | 61 6c 77 61 79 73 20 62 |ter can |always b|
|00003b00| 65 20 75 73 65 64 20 69 | 6e 73 74 65 61 64 2e 0a |e used i|nstead..|
|00003b10| 09 20 20 20 20 5c 73 75 | 62 73 75 62 73 65 63 74 |. \su|bsubsect|
|00003b20| 69 6f 6e 7b 63 75 72 72 | 65 6e 74 2e 70 69 63 74 |ion{curr|ent.pict|
|00003b30| 75 72 65 7d 20 41 6c 6c | 77 61 79 73 20 70 6f 69 |ure} All|ways poi|
|00003b40| 6e 74 73 20 74 6f 20 63 | 75 72 72 65 6e 74 20 70 |nts to c|urrent p|
|00003b50| 69 63 74 75 72 65 0a 09 | 09 28 63 61 6e 20 62 65 |icture..|.(can be|
|00003b60| 20 4e 55 4c 4c 29 2e 0a | 09 09 5c 73 79 6e 6f 70 | NULL)..|..\synop|
|00003b70| 73 79 73 7b 73 74 72 75 | 63 74 20 70 69 63 74 75 |sys{stru|ct pictu|
|00003b80| 72 65 20 2a 63 75 72 72 | 65 6e 74 2e 70 69 63 74 |re *curr|ent.pict|
|00003b90| 75 72 65 7d 0a 0a 09 20 | 20 20 20 5c 73 75 62 73 |ure}... | \subs|
|00003ba0| 75 62 73 65 63 74 69 6f | 6e 7b 63 75 72 72 65 6e |ubsectio|n{curren|
|00003bb0| 74 2e 66 69 65 6c 64 7d | 20 41 6c 6c 77 61 79 73 |t.field}| Allways|
|00003bc0| 20 70 6f 69 6e 74 73 20 | 74 6f 20 63 75 72 72 65 | points |to curre|
|00003bd0| 6e 74 20 66 69 65 6c 64 | 0a 09 09 28 63 61 6e 20 |nt field|...(can |
|00003be0| 62 65 20 4e 55 4c 4c 29 | 2e 0a 09 09 5c 73 79 6e |be NULL)|....\syn|
|00003bf0| 6f 70 73 79 73 7b 73 74 | 72 75 63 74 20 66 69 65 |opsys{st|ruct fie|
|00003c00| 6c 64 20 2a 63 75 72 72 | 65 6e 74 2e 66 69 65 6c |ld *curr|ent.fiel|
|00003c10| 64 7d 0a 0a 5c 73 65 63 | 74 69 6f 6e 7b 48 6f 77 |d}..\sec|tion{How|
|00003c20| 20 74 6f 20 63 6f 6d 70 | 69 6c 65 20 61 6e 64 20 | to comp|ile and |
|00003c30| 69 6e 73 74 61 6c 6c 20 | 43 46 6f 72 6d 73 7d 0a |install |CForms}.|
|00003c40| 0a 57 68 65 6e 20 79 6f | 75 20 68 61 76 65 20 75 |.When yo|u have u|
|00003c50| 6e 70 61 63 6b 65 64 20 | 74 68 65 20 43 46 6f 72 |npacked |the CFor|
|00003c60| 6d 73 20 61 72 63 68 69 | 76 65 20 79 6f 75 20 6a |ms archi|ve you j|
|00003c70| 75 73 74 20 64 6f 20 63 | 64 20 74 6f 20 74 68 65 |ust do c|d to the|
|00003c80| 20 64 69 72 65 63 74 6f | 72 79 0a 77 68 65 72 65 | directo|ry.where|
|00003c90| 20 79 6f 75 20 75 6e 70 | 61 63 6b 65 64 20 69 74 | you unp|acked it|
|00003ca0| 20 61 6e 64 20 63 68 61 | 6e 67 65 20 74 68 65 20 | and cha|nge the |
|00003cb0| 44 45 53 54 2d 76 61 72 | 69 61 62 6c 65 20 69 6e |DEST-var|iable in|
|00003cc0| 20 74 68 65 20 4d 61 6b | 65 66 69 6c 65 2e 73 72 | the Mak|efile.sr|
|00003cd0| 63 20 74 6f 0a 77 68 65 | 72 65 20 79 6f 75 20 77 |c to.whe|re you w|
|00003ce0| 61 6e 74 20 43 46 6f 72 | 6d 73 20 69 6e 73 74 61 |ant CFor|ms insta|
|00003cf0| 6c 6c 65 64 2e 20 54 68 | 65 6e 20 74 68 65 20 7b |lled. Th|en the {|
|00003d00| 5c 65 6d 20 43 6f 6e 66 | 69 67 75 72 65 7d 20 73 |\em Conf|igure} s|
|00003d10| 63 72 69 70 74 20 6d 75 | 73 74 20 72 75 6e 2e 0a |cript mu|st run..|
|00003d20| 41 66 74 65 72 20 74 68 | 61 74 20 79 6f 75 20 73 |After th|at you s|
|00003d30| 68 6f 75 6c 64 20 64 6f | 20 61 20 27 6d 61 6b 65 |hould do| a 'make|
|00003d40| 27 20 66 6f 6c 6c 6f 77 | 65 64 20 62 79 20 61 6e |' follow|ed by an|
|00003d50| 20 27 6d 61 6b 65 20 69 | 6e 73 74 61 6c 6c 27 2e | 'make i|nstall'.|
|00003d60| 0a 44 6f 6e 27 74 20 6d | 61 6b 65 20 61 6e 79 20 |.Don't m|ake any |
|00003d70| 63 68 61 6e 67 65 73 20 | 69 6e 20 74 68 65 20 4d |changes |in the M|
|00003d80| 61 6b 65 66 69 6c 65 2c | 20 64 6f 20 69 74 20 69 |akefile,| do it i|
|00003d90| 6e 20 74 68 65 20 4d 61 | 6b 65 66 69 6c 65 2e 73 |n the Ma|kefile.s|
|00003da0| 72 63 20 61 6e 64 20 72 | 65 72 75 6e 20 0a 43 6f |rc and r|erun .Co|
|00003db0| 6e 66 69 67 75 72 65 20 | 69 6e 73 74 65 61 64 2e |nfigure |instead.|
|00003dc0| 0a 0a 59 6f 75 20 63 61 | 6e 20 61 6c 73 6f 20 63 |..You ca|n also c|
|00003dd0| 6f 6d 70 69 6c 65 20 74 | 68 65 20 65 78 61 6d 70 |ompile t|he examp|
|00003de0| 6c 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 69 |le appli|cation i|
|00003df0| 6e 20 74 68 65 20 65 78 | 61 6d 70 6c 65 20 73 75 |n the ex|ample su|
|00003e00| 62 64 69 72 65 63 74 6f | 72 79 0a 62 79 20 64 6f |bdirecto|ry.by do|
|00003e10| 69 6e 67 20 27 6d 61 6b | 65 20 65 78 61 6d 70 6c |ing 'mak|e exampl|
|00003e20| 65 27 2c 20 63 68 65 63 | 6b 20 69 74 20 6f 75 74 |e', chec|k it out|
|00003e30| 20 74 6f 20 73 65 65 20 | 77 68 61 74 20 61 6e 20 | to see |what an |
|00003e40| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 6d 69 67 68 |applicat|ion migh|
|00003e50| 74 20 6c 6f 6f 6b 0a 6c | 69 6b 65 2e 0a 0a 5c 73 |t look.l|ike...\s|
|00003e60| 65 63 74 69 6f 6e 7b 48 | 6f 77 20 74 6f 20 63 6f |ection{H|ow to co|
|00003e70| 6d 70 69 6c 65 20 43 46 | 6f 72 6d 73 20 61 70 70 |mpile CF|orms app|
|00003e80| 6c 69 63 61 74 69 6f 6e | 73 7d 0a 0a 4c 65 74 73 |lication|s}..Lets|
|00003e90| 20 73 61 79 20 79 6f 75 | 20 6a 75 73 74 20 69 6e | say you| just in|
|00003ea0| 73 74 61 6c 6c 65 64 20 | 43 46 6f 72 6d 73 20 77 |stalled |CForms w|
|00003eb0| 69 74 68 20 44 45 53 54 | 20 73 65 74 20 74 6f 20 |ith DEST| set to |
|00003ec0| 7b 5c 65 6d 20 2f 75 73 | 72 2f 6c 6f 63 61 6c 7d |{\em /us|r/local}|
|00003ed0| 2c 0a 74 68 61 74 20 6d | 65 61 6e 73 20 74 68 61 |,.that m|eans tha|
|00003ee0| 74 20 74 68 65 20 43 46 | 6f 72 6d 73 20 63 6f 6d |t the CF|orms com|
|00003ef0| 70 69 6c 65 72 20 72 65 | 73 69 64 65 73 20 69 6e |piler re|sides in|
|00003f00| 20 2f 75 73 72 2f 6c 6f | 63 61 6c 2f 62 69 6e 2c | /usr/lo|cal/bin,|
|00003f10| 20 74 68 65 0a 63 66 6f | 72 6d 73 20 69 6e 63 6c | the.cfo|rms incl|
|00003f20| 75 64 65 20 66 69 6c 65 | 20 72 65 73 69 64 65 73 |ude file| resides|
|00003f30| 20 69 6e 20 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 69 | in /usr|/local/i|
|00003f40| 6e 63 6c 75 64 65 20 61 | 6e 64 20 74 68 65 20 6c |nclude a|nd the l|
|00003f50| 69 62 72 61 72 79 0a 6c | 69 62 63 66 6f 72 6d 73 |ibrary.l|ibcforms|
|00003f60| 2e 61 20 69 6e 20 2f 75 | 73 72 2f 6c 6f 63 61 6c |.a in /u|sr/local|
|00003f70| 2f 6c 69 62 2c 20 74 68 | 65 6e 20 74 68 69 73 20 |/lib, th|en this |
|00003f80| 69 73 20 68 6f 77 20 74 | 6f 20 63 6f 6d 70 69 6c |is how t|o compil|
|00003f90| 65 20 61 20 43 46 6f 72 | 6d 73 0a 61 70 70 6c 69 |e a CFor|ms.appli|
|00003fa0| 63 61 74 69 6f 6e 3a 0a | 0a 46 69 72 73 74 20 79 |cation:.|.First y|
|00003fb0| 6f 75 20 72 75 6e 20 74 | 68 65 20 43 46 6f 72 6d |ou run t|he CForm|
|00003fc0| 73 20 63 6f 6d 70 69 6c | 65 72 2c 20 7b 5c 65 6d |s compil|er, {\em|
|00003fd0| 20 63 66 63 7d 2c 20 6f | 6e 20 79 6f 75 72 20 69 | cfc}, o|n your i|
|00003fe0| 6e 70 75 74 66 69 6c 65 | 73 3a 0a 20 20 20 20 5c |nputfile|s:. \|
|00003ff0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00004000| 09 63 66 63 20 66 6f 72 | 6d 31 2e 66 72 6d 0a 09 |.cfc for|m1.frm..|
|00004010| 63 66 63 20 66 6f 72 6d | 32 2e 66 72 6d 0a 20 20 |cfc form|2.frm. |
|00004020| 20 20 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d | \end{v|erbatim}|
|00004030| 0a 0a 54 68 69 73 20 77 | 69 6c 6c 20 67 65 6e 65 |..This w|ill gene|
|00004040| 72 61 74 65 20 74 68 65 | 20 63 2d 63 6f 64 65 20 |rate the| c-code |
|00004050| 6f 75 74 70 75 74 20 66 | 69 6c 65 73 2c 20 7b 5c |output f|iles, {\|
|00004060| 65 6d 20 66 6f 72 6d 31 | 2e 63 7d 20 61 6e 64 20 |em form1|.c} and |
|00004070| 7b 5c 65 6d 20 66 6f 72 | 6d 32 2e 63 7d 2e 0a 54 |{\em for|m2.c}..T|
|00004080| 68 6f 73 65 20 66 69 6c | 65 73 20 6d 75 73 74 20 |hose fil|es must |
|00004090| 6e 6f 77 20 62 65 20 6c | 69 6e 6b 65 64 20 77 69 |now be l|inked wi|
|000040a0| 74 68 20 74 68 65 20 63 | 66 6f 72 6d 73 20 6c 69 |th the c|forms li|
|000040b0| 6e 6b 65 72 20 7b 5c 65 | 6d 20 63 66 6c 7d 2c 20 |nker {\e|m cfl}, |
|000040c0| 6a 75 73 74 20 64 6f 3a | 0a 20 20 20 20 5c 62 65 |just do:|. \be|
|000040d0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 09 63 |gin{verb|atim}..c|
|000040e0| 66 6c 20 66 6f 72 6d 31 | 2e 66 72 6d 20 66 6f 72 |fl form1|.frm for|
|000040f0| 6d 32 2e 66 72 6d 0a 20 | 20 20 20 5c 65 6e 64 7b |m2.frm. | \end{|
|00004100| 76 65 72 62 61 74 69 6d | 7d 0a 54 68 69 73 20 77 |verbatim|}.This w|
|00004110| 69 6c 6c 20 70 72 6f 64 | 75 63 65 20 74 68 65 20 |ill prod|uce the |
|00004120| 63 66 6f 72 6d 73 20 6c | 69 6e 6b 61 67 65 20 66 |cforms l|inkage f|
|00004130| 69 6c 65 20 7b 5c 65 6d | 20 63 66 6f 72 6d 73 2e |ile {\em| cforms.|
|00004140| 63 7d 0a 57 68 61 74 20 | 74 68 65 20 6c 69 6e 6b |c}.What |the link|
|00004150| 65 72 20 64 6f 65 73 20 | 69 73 20 73 69 6d 70 6c |er does |is simpl|
|00004160| 79 20 70 75 74 74 69 6e | 67 20 74 6f 67 65 74 68 |y puttin|g togeth|
|00004170| 65 72 20 61 20 6c 69 73 | 74 20 6f 66 20 61 6c 6c |er a lis|t of all|
|00004180| 20 6d 6f 64 75 6c 65 73 | 20 74 68 61 74 0a 73 68 | modules| that.sh|
|00004190| 6f 75 6c 64 20 62 65 20 | 75 73 65 64 20 66 72 6f |ould be |used fro|
|000041a0| 6d 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |m the ap|plicatio|
|000041b0| 6e 2e 0a 4e 6f 77 20 74 | 68 65 20 73 79 73 74 65 |n..Now t|he syste|
|000041c0| 6d 20 6e 61 74 69 76 65 | 20 63 2d 63 6f 6d 70 69 |m native| c-compi|
|000041d0| 6c 65 72 20 73 68 6f 75 | 6c 64 20 62 65 20 75 73 |ler shou|ld be us|
|000041e0| 65 64 20 74 6f 20 63 6f | 6d 70 69 6c 65 20 61 6c |ed to co|mpile al|
|000041f0| 6c 20 74 68 6f 73 65 20 | 66 69 6c 65 73 0a 28 69 |l those |files.(i|
|00004200| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 63 66 6f |ncluding| the cfo|
|00004210| 72 6d 73 2e 63 20 66 69 | 6c 65 29 0a 70 6c 75 73 |rms.c fi|le).plus|
|00004220| 20 61 6c 6c 20 6f 74 68 | 65 72 20 66 69 6c 65 73 | all oth|er files|
|00004230| 20 74 68 61 74 20 73 68 | 6f 75 6c 64 20 67 6f 20 | that sh|ould go |
|00004240| 61 6c 6f 6e 67 20 77 69 | 74 68 20 74 68 65 20 61 |along wi|th the a|
|00004250| 70 70 6c 69 63 61 74 69 | 6f 6e 3a 0a 20 20 20 20 |pplicati|on:. |
|00004260| 5c 62 65 67 69 6e 7b 76 | 65 72 62 61 74 69 6d 7d |\begin{v|erbatim}|
|00004270| 0a 09 63 63 20 2d 6f 20 | 3c 79 6f 75 72 61 70 70 |..cc -o |<yourapp|
|00004280| 3e 20 2d 49 2f 75 73 72 | 2f 6c 6f 63 61 6c 2f 69 |> -I/usr|/local/i|
|00004290| 6e 63 6c 75 64 65 20 2d | 4c 2f 75 73 72 2f 6c 6f |nclude -|L/usr/lo|
|000042a0| 63 61 6c 2f 6c 69 62 20 | 5c 0a 09 09 20 63 66 6f |cal/lib |\... cfo|
|000042b0| 72 6d 73 2e 63 20 66 6f | 72 6d 31 2e 63 20 66 6f |rms.c fo|rm1.c fo|
|000042c0| 72 6d 32 2e 63 20 2d 6c | 63 66 6f 72 6d 73 20 2d |rm2.c -l|cforms -|
|000042d0| 6c 63 75 72 73 65 73 20 | 2d 6c 74 65 72 6d 69 6e |lcurses |-ltermin|
|000042e0| 66 6f 0a 20 20 20 20 5c | 65 6e 64 7b 76 65 72 62 |fo. \|end{verb|
|000042f0| 61 74 69 6d 7d 0a 4f 62 | 73 65 72 76 65 20 74 68 |atim}.Ob|serve th|
|00004300| 61 74 20 74 68 65 20 2d | 4c 20 66 6c 61 67 20 6d |at the -|L flag m|
|00004310| 75 73 74 20 62 65 20 74 | 68 65 72 65 20 62 65 63 |ust be t|here bec|
|00004320| 61 75 73 65 20 74 68 65 | 20 63 66 6f 72 6d 73 20 |ause the| cforms |
|00004330| 6c 69 62 72 61 72 79 20 | 69 73 20 69 6e 0a 2f 75 |library |is in./u|
|00004340| 73 72 2f 5c 2d 6c 6f 63 | 61 6c 2f 5c 2d 6c 69 62 |sr/\-loc|al/\-lib|
|00004350| 2e 0a 0a 4e 6f 77 20 79 | 6f 75 20 73 68 6f 75 6c |...Now y|ou shoul|
|00004360| 64 20 62 65 20 61 62 6c | 65 20 74 6f 20 72 75 6e |d be abl|e to run|
|00004370| 20 79 6f 75 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | you app|lication|
|00004380| 2e 0a 0a 5c 73 65 63 74 | 69 6f 6e 7b 43 46 6f 72 |...\sect|ion{CFor|
|00004390| 6d 73 20 66 6f 72 6d 75 | 6c 61 73 20 69 6e 20 6f |ms formu|las in o|
|000043a0| 62 6a 65 63 74 20 6c 69 | 62 72 61 72 69 65 73 7d |bject li|braries}|
|000043b0| 0a 0a 49 74 20 69 73 20 | 70 6f 73 73 69 62 6c 65 |..It is |possible|
|000043c0| 20 74 6f 20 75 73 65 20 | 70 69 63 74 75 72 65 73 | to use |pictures|
|000043d0| 20 74 68 61 74 20 68 61 | 73 20 70 72 65 76 69 6f | that ha|s previo|
|000043e0| 75 73 6c 79 20 62 65 65 | 6e 20 63 6f 6d 70 69 6c |usly bee|n compil|
|000043f0| 65 64 20 69 6e 74 6f 20 | 6f 62 6a 65 63 74 0a 6c |ed into |object.l|
|00004400| 69 62 72 61 72 69 65 73 | 2c 20 69 6e 20 74 68 61 |ibraries|, in tha|
|00004410| 74 20 63 61 73 65 20 74 | 68 65 20 6d 6f 64 75 6c |t case t|he modul|
|00004420| 65 73 20 66 72 6f 6d 20 | 74 68 6f 73 65 20 6c 69 |es from |those li|
|00004430| 62 72 61 72 69 65 73 20 | 6d 75 73 74 20 62 65 20 |braries |must be |
|00004440| 70 72 65 73 65 6e 74 65 | 64 20 74 6f 0a 74 68 65 |presente|d to.the|
|00004450| 20 63 66 6f 72 6d 73 20 | 6c 69 6e 6b 65 72 20 61 | cforms |linker a|
|00004460| 6e 64 20 74 6f 20 64 6f | 20 74 68 69 73 20 74 68 |nd to do| this th|
|00004470| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 6c 69 |e name o|f the li|
|00004480| 62 72 61 72 79 20 6d 6f | 64 75 6c 65 20 6d 75 73 |brary mo|dule mus|
|00004490| 74 20 62 65 20 6b 6e 6f | 77 6e 0a 62 79 20 74 68 |t be kno|wn.by th|
|000044a0| 65 20 70 72 6f 67 72 61 | 6d 6d 65 72 2e 0a 54 68 |e progra|mmer..Th|
|000044b0| 65 20 72 65 61 73 6f 6e | 20 6f 6e 6c 79 20 74 68 |e reason| only th|
|000044c0| 65 20 6e 61 6d 65 20 68 | 61 73 20 74 6f 20 62 65 |e name h|as to be|
|000044d0| 20 6b 6e 6f 77 6e 20 69 | 73 20 74 68 61 74 20 74 | known i|s that t|
|000044e0| 68 65 20 6e 61 6d 65 20 | 6f 66 20 74 68 65 20 6d |he name |of the m|
|000044f0| 6f 64 75 6c 65 20 64 65 | 66 69 6e 65 73 0a 61 20 |odule de|fines.a |
|00004500| 67 6c 6f 62 61 6c 20 76 | 61 72 61 69 62 6c 65 20 |global v|araible |
|00004510| 69 6e 73 69 64 65 20 74 | 68 65 20 6c 69 62 72 61 |inside t|he libra|
|00004520| 72 79 20 61 6e 64 20 7b | 5c 65 6d 20 63 66 6c 7d |ry and {|\em cfl}|
|00004530| 20 75 73 65 73 20 6f 6e | 6c 79 20 74 68 65 20 6e | uses on|ly the n|
|00004540| 61 6d 65 20 6f 66 20 74 | 68 65 0a 6d 6f 64 75 6c |ame of t|he.modul|
|00004550| 65 20 61 6e 64 20 6e 6f | 74 20 74 68 65 20 63 6f |e and no|t the co|
|00004560| 6e 74 65 6e 74 73 2e 0a | 0a 54 68 65 20 66 69 72 |ntents..|.The fir|
|00004570| 73 74 20 73 74 65 70 20 | 69 6e 20 6d 61 6b 69 6e |st step |in makin|
|00004580| 67 20 61 20 6c 69 62 72 | 61 72 79 20 69 73 20 74 |g a libr|ary is t|
|00004590| 6f 20 72 75 6e 20 7b 5c | 65 6d 20 63 66 63 7d 20 |o run {\|em cfc} |
|000045a0| 6f 6e 20 74 68 65 20 66 | 6f 72 6d 73 20 66 69 6c |on the f|orms fil|
|000045b0| 65 2c 20 74 68 69 73 0a | 70 72 6f 64 75 63 65 73 |e, this.|produces|
|000045c0| 20 74 68 65 20 63 2d 66 | 69 6c 65 2e 20 43 6f 6d | the c-f|ile. Com|
|000045d0| 70 69 6c 65 20 74 68 69 | 73 20 61 6e 64 20 70 75 |pile thi|s and pu|
|000045e0| 74 20 69 74 20 69 6e 74 | 6f 20 61 20 6c 69 62 72 |t it int|o a libr|
|000045f0| 61 72 79 2e 0a 0a 54 68 | 69 73 20 65 78 61 6d 70 |ary...Th|is examp|
|00004600| 6c 65 20 73 68 6f 77 73 | 20 68 6f 77 20 74 68 65 |le shows| how the|
|00004610| 20 6d 6f 64 75 6c 65 20 | 7b 5c 65 6d 20 66 69 6c | module |{\em fil|
|00004620| 65 5c 5f 62 72 6f 77 73 | 65 72 7d 20 69 73 20 70 |e\_brows|er} is p|
|00004630| 75 74 20 69 6e 74 6f 20 | 61 20 6c 69 62 72 61 72 |ut into |a librar|
|00004640| 79 3a 0a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |y:..\beg|in{verba|
|00004650| 74 69 6d 7d 0a 20 20 20 | 20 63 66 63 20 66 69 6c |tim}. | cfc fil|
|00004660| 65 5f 62 72 6f 77 73 65 | 72 2e 66 72 6d 0a 20 20 |e_browse|r.frm. |
|00004670| 20 20 63 63 20 2d 63 20 | 2d 49 2f 75 73 72 2f 6c | cc -c |-I/usr/l|
|00004680| 6f 63 61 6c 2f 69 6e 63 | 6c 75 64 65 20 66 69 6c |ocal/inc|lude fil|
|00004690| 65 5f 62 72 6f 77 73 65 | 72 2e 63 0a 20 20 20 20 |e_browse|r.c. |
|000046a0| 61 72 20 72 20 6c 69 62 | 66 69 6c 65 2e 61 20 66 |ar r lib|file.a f|
|000046b0| 69 6c 65 5f 62 72 6f 77 | 73 65 72 2e 6f 0a 5c 65 |ile_brow|ser.o.\e|
|000046c0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 0a 4e 6f |nd{verba|tim}..No|
|000046d0| 77 20 74 68 65 20 6d 6f | 64 75 6c 65 20 69 73 20 |w the mo|dule is |
|000046e0| 69 6e 20 74 68 65 20 6c | 69 62 72 61 72 79 20 6c |in the l|ibrary l|
|000046f0| 69 62 66 69 6c 65 2e 61 | 2c 20 69 66 20 61 6e 6f |ibfile.a|, if ano|
|00004700| 74 68 65 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ther app|lication|
|00004710| 20 77 61 6e 74 73 20 74 | 6f 0a 75 73 65 20 70 69 | wants t|o.use pi|
|00004720| 63 74 75 72 65 73 20 66 | 72 6f 6d 20 74 68 69 73 |ctures f|rom this|
|00004730| 20 6d 6f 64 75 6c 65 20 | 69 74 20 6d 75 73 74 20 | module |it must |
|00004740| 66 69 72 73 74 20 20 61 | 64 64 20 74 68 65 20 74 |first a|dd the t|
|00004750| 65 78 74 20 66 69 6c 65 | 5c 5f 62 72 6f 77 73 65 |ext file|\_browse|
|00004760| 72 2e 66 72 6d 0a 74 6f | 20 74 68 65 20 61 72 67 |r.frm.to| the arg|
|00004770| 75 6d 65 6e 74 20 6c 69 | 73 74 20 6f 66 20 7b 5c |ument li|st of {\|
|00004780| 65 6d 20 63 66 6c 7d 2e | 20 46 69 6e 61 6c 6c 79 |em cfl}.| Finally|
|00004790| 20 74 68 65 20 61 63 74 | 75 61 6c 20 6c 69 62 72 | the act|ual libr|
|000047a0| 61 72 79 20 6d 75 73 74 | 20 62 65 20 6c 69 6e 6b |ary must| be link|
|000047b0| 65 64 0a 77 69 74 68 20 | 74 68 65 20 61 70 70 6c |ed.with |the appl|
|000047c0| 69 63 61 74 69 6f 6e 2e | 0a 0a 54 68 69 73 20 65 |ication.|..This e|
|000047d0| 78 61 6d 70 6c 65 20 73 | 68 6f 77 20 74 68 65 20 |xample s|how the |
|000047e0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 7b 5c 65 6d |applicat|ion {\em|
|000047f0| 20 75 73 65 72 5c 5f 6d | 65 6e 75 7d 20 63 61 6c | user\_m|enu} cal|
|00004800| 6c 73 20 75 70 6f 6e 20 | 74 68 65 0a 7b 5c 65 6d |ls upon |the.{\em|
|00004810| 20 66 69 6c 65 5c 5f 62 | 72 6f 77 73 65 72 7d 20 | file\_b|rowser} |
|00004820| 6d 6f 64 75 6c 65 2e 0a | 5c 62 65 67 69 6e 7b 76 |module..|\begin{v|
|00004830| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 20 63 66 63 |erbatim}|. cfc|
|00004840| 20 75 73 65 72 5f 6d 65 | 6e 75 2e 66 72 6d 0a 20 | user_me|nu.frm. |
|00004850| 20 20 20 63 66 6c 20 75 | 73 65 72 5f 6d 65 6e 75 | cfl u|ser_menu|
|00004860| 2e 66 72 6d 20 66 69 6c | 65 5f 62 72 6f 77 73 65 |.frm fil|e_browse|
|00004870| 72 2e 66 72 6d 0a 20 20 | 20 20 63 63 20 2d 6f 20 |r.frm. | cc -o |
|00004880| 75 73 65 72 5f 6d 65 6e | 75 20 75 73 65 72 5f 6d |user_men|u user_m|
|00004890| 65 6e 75 2e 6f 20 2d 4c | 2f 75 73 72 2f 6c 6f 63 |enu.o -L|/usr/loc|
|000048a0| 61 6c 2f 6c 69 62 20 6c | 69 62 66 69 6c 65 2e 61 |al/lib l|ibfile.a|
|000048b0| 20 5c 0a 20 20 20 20 20 | 20 20 20 2d 6c 63 66 6f | \. | -lcfo|
|000048c0| 72 6d 73 20 2d 6c 63 75 | 72 73 65 73 20 2d 6c 74 |rms -lcu|rses -lt|
|000048d0| 65 72 6d 69 6e 66 6f 0a | 5c 65 6e 64 7b 76 65 72 |erminfo.|\end{ver|
|000048e0| 62 61 74 69 6d 7d 0a 41 | 6c 73 6f 20 6e 6f 74 65 |batim}.A|lso note|
|000048f0| 20 74 68 61 74 20 65 76 | 65 6e 20 69 66 20 6f 6e | that ev|en if on|
|00004900| 6c 79 20 6f 6e 65 20 6d | 6f 64 75 6c 65 20 69 73 |ly one m|odule is|
|00004910| 20 74 6f 20 62 65 20 75 | 73 65 64 20 74 68 65 20 | to be u|sed the |
|00004920| 63 66 6c 20 6d 75 73 74 | 20 62 65 0a 69 6e 76 6f |cfl must| be.invo|
|00004930| 6b 65 64 20 66 6f 72 20 | 74 68 69 73 20 73 69 6e |ked for |this sin|
|00004940| 67 6c 65 20 66 69 6c 65 | 20 74 6f 20 67 65 6e 65 |gle file| to gene|
|00004950| 72 61 74 65 20 74 68 65 | 20 7b 5c 65 6d 20 63 66 |rate the| {\em cf|
|00004960| 6f 72 6d 73 2e 63 7d 20 | 66 69 6c 65 2e 0a 0a 5c |orms.c} |file...\|
|00004970| 73 65 63 74 69 6f 6e 7b | 4b 65 79 73 7d 0a 54 68 |section{|Keys}.Th|
|00004980| 65 65 73 65 20 61 72 65 | 20 74 68 65 20 6b 65 79 |eese are| the key|
|00004990| 73 20 74 68 61 74 20 63 | 61 6e 20 62 65 20 75 73 |s that c|an be us|
|000049a0| 65 64 20 69 6e 20 65 76 | 65 6e 74 20 72 6f 75 74 |ed in ev|ent rout|
|000049b0| 69 6e 65 73 2c 20 6e 6f | 74 65 20 74 68 61 74 20 |ines, no|te that |
|000049c0| 63 61 70 69 74 61 6c 0a | 6c 65 74 74 65 72 20 61 |capital.|letter a|
|000049d0| 72 65 20 64 6f 75 62 6c | 65 73 3a 0a 20 20 20 5c |re doubl|es:. \|
|000049e0| 62 65 67 69 6e 7b 74 61 | 62 62 69 6e 67 7d 0a 20 |begin{ta|bbing}. |
|000049f0| 20 20 20 43 4c 45 41 52 | 3a 20 53 65 6e 74 20 62 | CLEAR|: Sent b|
|00004a00| 79 20 63 6c 65 61 72 20 | 73 63 72 65 65 6e 20 6f |y clear |screen o|
|00004a10| 72 20 65 72 61 73 65 20 | 6b 65 79 2e 78 78 5c 3d |r erase |key.xx\=|
|00004a20| 20 5c 6b 69 6c 6c 0a 20 | 20 20 20 55 4e 44 45 52 | \kill. | UNDER|
|00004a30| 53 43 4f 52 45 3a 20 55 | 6e 64 65 72 73 63 6f 72 |SCORE: U|nderscor|
|00004a40| 65 09 5c 3e 20 50 4c 55 | 53 3a 20 50 6c 75 73 20 |e.\> PLU|S: Plus |
|00004a50| 73 69 67 6e 20 5c 5c 0a | 20 20 20 20 4d 49 4e 55 |sign \\.| MINU|
|00004a60| 53 3a 20 4d 69 6e 75 73 | 20 73 69 67 6e 09 09 5c |S: Minus| sign..\|
|00004a70| 3e 20 41 54 3a 20 41 74 | 20 73 69 67 6e 20 5c 5c |> AT: At| sign \\|
|00004a80| 0a 20 20 20 20 48 41 53 | 48 3a 20 68 61 73 68 20 |. HAS|H: hash |
|00004a90| 6d 61 72 6b 09 09 5c 3e | 20 44 4f 4c 4c 41 52 3a |mark..\>| DOLLAR:|
|00004aa0| 20 44 6f 6c 6c 61 72 20 | 73 69 67 6e 20 5c 5c 0a | Dollar |sign \\.|
|00004ab0| 20 20 20 20 53 4c 41 53 | 48 3a 20 53 6c 61 73 68 | SLAS|H: Slash|
|00004ac0| 20 73 69 67 6e 09 09 5c | 3e 20 41 53 54 45 52 49 | sign..\|> ASTERI|
|00004ad0| 53 4b 3a 20 53 74 61 72 | 20 5c 5c 0a 20 20 20 20 |SK: Star| \\. |
|00004ae0| 54 49 4c 44 45 3a 20 54 | 69 6c 64 65 20 73 69 67 |TILDE: T|ilde sig|
|00004af0| 6e 09 09 5c 3e 20 42 41 | 4e 47 3a 20 45 78 63 6c |n..\> BA|NG: Excl|
|00004b00| 61 6d 61 74 69 6f 6e 20 | 6d 61 72 6b 20 5c 5c 0a |amation |mark \\.|
|00004b10| 20 20 20 20 45 51 55 41 | 4c 3a 20 45 71 75 61 6c | EQUA|L: Equal|
|00004b20| 20 73 69 67 6e 09 09 5c | 3e 20 50 45 52 43 45 4e | sign..\|> PERCEN|
|00004b30| 54 3a 20 50 72 65 63 65 | 6e 74 20 73 69 67 6e 20 |T: Prece|nt sign |
|00004b40| 5c 5c 0a 20 20 20 20 41 | 4d 50 45 52 53 41 4e 44 |\\. A|MPERSAND|
|00004b50| 3a 20 41 6e 64 20 6f 72 | 20 41 6d 70 65 72 73 61 |: And or| Ampersa|
|00004b60| 6e 64 20 73 69 67 6e 09 | 5c 3e 20 4c 50 41 52 3a |nd sign.|\> LPAR:|
|00004b70| 20 4c 65 66 74 20 70 61 | 72 65 6e 74 65 73 69 73 | Left pa|rentesis|
|00004b80| 20 5c 5c 0a 20 20 20 20 | 52 50 41 52 3a 20 52 69 | \\. |RPAR: Ri|
|00004b90| 67 68 74 20 70 61 72 65 | 6e 74 65 73 69 73 09 5c |ght pare|ntesis.\|
|00004ba0| 3e 20 4c 42 52 41 43 4b | 45 54 3a 20 4c 65 66 74 |> LBRACK|ET: Left|
|00004bb0| 20 62 72 61 63 6b 65 74 | 20 5c 5c 0a 20 20 20 20 | bracket| \\. |
|00004bc0| 52 42 52 41 43 4b 45 54 | 3a 20 52 69 67 68 74 20 |RBRACKET|: Right |
|00004bd0| 62 72 65 61 63 6b 65 74 | 09 5c 3e 20 4c 42 52 41 |breacket|.\> LBRA|
|00004be0| 43 45 3a 20 4c 65 66 74 | 20 62 72 61 63 65 20 5c |CE: Left| brace \|
|00004bf0| 5c 0a 20 20 20 20 52 42 | 52 41 43 45 3a 20 52 69 |\. RB|RACE: Ri|
|00004c00| 67 68 74 20 62 72 61 63 | 65 09 09 5c 3e 20 51 55 |ght brac|e..\> QU|
|00004c10| 4f 54 45 3a 20 53 6f 75 | 62 6c 65 20 71 75 6f 74 |OTE: Sou|ble quot|
|00004c20| 65 20 5c 5c 0a 20 20 20 | 20 53 50 41 43 45 3a 20 |e \\. | SPACE: |
|00004c30| 53 70 61 63 65 20 62 61 | 72 20 09 09 5c 3e 20 42 |Space ba|r ..\> B|
|00004c40| 4c 41 4e 4b 3a 20 53 70 | 61 63 65 20 62 61 72 20 |LANK: Sp|ace bar |
|00004c50| 20 5c 5c 0a 20 20 20 20 | 51 55 45 53 54 49 4f 4e | \\. |QUESTION|
|00004c60| 3a 20 51 75 65 73 74 69 | 6f 6e 20 6d 61 72 6b 09 |: Questi|on mark.|
|00004c70| 5c 3e 20 45 53 43 3a 20 | 45 73 63 61 70 65 20 20 |\> ESC: |Escape |
|00004c80| 5c 5c 0a 20 20 20 20 42 | 53 3a 20 42 61 63 6b 73 |\\. B|S: Backs|
|00004c90| 70 61 63 65 20 09 09 5c | 3e 20 43 52 3a 20 43 61 |pace ..\|> CR: Ca|
|00004ca0| 72 72 69 61 67 65 20 72 | 65 74 75 72 6e 20 20 5c |rriage r|eturn \|
|00004cb0| 5c 0a 20 20 20 20 54 41 | 42 3a 20 54 61 62 20 09 |\. TA|B: Tab .|
|00004cc0| 09 09 5c 3e 20 42 52 45 | 41 4b 3a 20 62 72 65 61 |..\> BRE|AK: brea|
|00004cd0| 6b 20 6b 65 79 20 28 75 | 6e 72 65 6c 69 61 62 6c |k key (u|nreliabl|
|00004ce0| 65 29 20 20 5c 5c 0a 20 | 20 20 20 44 4f 57 4e 3a |e) \\. | DOWN:|
|00004cf0| 20 53 65 6e 74 20 62 79 | 20 74 65 72 6d 69 6e 61 | Sent by| termina|
|00004d00| 6c 20 64 6f 77 6e 20 61 | 72 72 6f 77 20 6b 65 79 |l down a|rrow key|
|00004d10| 20 5c 3e 20 55 50 3a 20 | 53 65 6e 74 20 62 79 20 | \> UP: |Sent by |
|00004d20| 74 65 72 6d 69 6e 61 6c | 20 75 70 20 61 72 72 6f |terminal| up arro|
|00004d30| 77 20 6b 65 79 20 20 5c | 5c 0a 20 20 20 20 4c 45 |w key \|\. LE|
|00004d40| 46 54 3a 20 53 65 6e 74 | 20 62 79 20 74 65 72 6d |FT: Sent| by term|
|00004d50| 69 6e 61 6c 20 6c 65 66 | 74 20 61 72 72 6f 77 20 |inal lef|t arrow |
|00004d60| 6b 65 79 20 5c 3e 20 52 | 49 47 48 54 3a 20 53 65 |key \> R|IGHT: Se|
|00004d70| 6e 74 20 62 79 20 74 65 | 72 6d 69 6e 61 6c 20 72 |nt by te|rminal r|
|00004d80| 69 67 68 74 20 61 72 72 | 6f 77 20 6b 65 79 20 20 |ight arr|ow key |
|00004d90| 5c 5c 0a 20 20 20 20 48 | 4f 4d 45 3a 20 53 65 6e |\\. H|OME: Sen|
|00004da0| 74 20 62 79 20 68 6f 6d | 65 20 6b 65 79 2e 20 09 |t by hom|e key. .|
|00004db0| 5c 3e 20 42 41 43 4b 53 | 50 41 43 45 3a 20 53 65 |\> BACKS|PACE: Se|
|00004dc0| 6e 74 20 62 79 20 62 61 | 63 6b 73 70 61 63 65 20 |nt by ba|ckspace |
|00004dd0| 6b 65 79 20 20 5c 5c 0a | 20 20 20 20 46 30 20 2d |key \\.| F0 -|
|00004de0| 20 46 32 30 3a 20 46 75 | 6e 63 74 69 6f 6e 20 6b | F20: Fu|nction k|
|00004df0| 65 79 73 09 5c 3e 20 44 | 4c 3a 20 53 65 6e 74 20 |eys.\> D|L: Sent |
|00004e00| 62 79 20 64 65 6c 65 74 | 65 20 6c 69 6e 65 20 6b |by delet|e line k|
|00004e10| 65 79 2e 20 20 5c 5c 0a | 20 20 20 20 49 4c 3a 20 |ey. \\.| IL: |
|00004e20| 53 65 6e 74 20 62 79 20 | 69 6e 73 65 72 74 20 6c |Sent by |insert l|
|00004e30| 69 6e 65 2e 20 09 5c 3e | 20 44 43 3a 20 53 65 6e |ine. .\>| DC: Sen|
|00004e40| 74 20 62 79 20 64 65 6c | 65 74 65 20 63 68 61 72 |t by del|ete char|
|00004e50| 61 63 74 65 72 20 6b 65 | 79 2e 20 20 5c 5c 0a 20 |acter ke|y. \\. |
|00004e60| 20 20 20 49 43 3a 20 53 | 65 6e 74 20 62 79 20 69 | IC: S|ent by i|
|00004e70| 6e 73 20 63 68 61 72 2f | 65 6e 74 65 72 20 69 6e |ns char/|enter in|
|00004e80| 73 20 6d 6f 64 65 20 6b | 65 79 2e 20 5c 3e 20 45 |s mode k|ey. \> E|
|00004e90| 49 43 3a 20 53 65 6e 74 | 20 62 79 20 72 6d 69 72 |IC: Sent| by rmir|
|00004ea0| 20 6f 72 20 73 6d 69 72 | 20 69 6e 20 69 6e 73 65 | or smir| in inse|
|00004eb0| 72 74 20 6d 6f 64 65 2e | 20 20 5c 5c 0a 20 20 20 |rt mode.| \\. |
|00004ec0| 20 43 4c 45 41 52 3a 20 | 53 65 6e 74 20 62 79 20 | CLEAR: |Sent by |
|00004ed0| 63 6c 65 61 72 20 73 63 | 72 65 65 6e 20 6f 72 20 |clear sc|reen or |
|00004ee0| 65 72 61 73 65 20 6b 65 | 79 2e 5c 3e 20 45 4f 53 |erase ke|y.\> EOS|
|00004ef0| 3a 20 53 65 6e 74 20 62 | 79 20 63 6c 65 61 72 2d |: Sent b|y clear-|
|00004f00| 74 6f 2d 65 6e 64 2d 6f | 66 2d 73 63 72 65 65 6e |to-end-o|f-screen|
|00004f10| 20 6b 65 79 2e 20 20 5c | 5c 0a 20 20 20 20 45 4f | key. \|\. EO|
|00004f20| 4c 3a 20 53 65 6e 74 20 | 62 79 20 63 6c 65 61 72 |L: Sent |by clear|
|00004f30| 2d 74 6f 2d 65 6e 64 2d | 6f 66 2d 6c 69 6e 65 20 |-to-end-|of-line |
|00004f40| 6b 65 79 2e 5c 3e 20 53 | 46 3a 20 53 65 6e 74 20 |key.\> S|F: Sent |
|00004f50| 62 79 20 73 63 72 6f 6c | 6c 2d 66 6f 72 77 61 72 |by scrol|l-forwar|
|00004f60| 64 2f 64 6f 77 6e 20 6b | 65 79 20 20 5c 5c 0a 20 |d/down k|ey \\. |
|00004f70| 20 20 20 53 52 3a 20 53 | 65 6e 74 20 62 79 20 73 | SR: S|ent by s|
|00004f80| 63 72 6f 6c 6c 2d 62 61 | 63 6b 77 61 72 64 2f 75 |croll-ba|ckward/u|
|00004f90| 70 20 6b 65 79 5c 3e 20 | 4e 50 41 47 45 3a 20 53 |p key\> |NPAGE: S|
|00004fa0| 65 6e 74 20 62 79 20 6e | 65 78 74 2d 70 61 67 65 |ent by n|ext-page|
|00004fb0| 20 6b 65 79 20 20 5c 5c | 0a 20 20 20 20 50 50 41 | key \\|. PPA|
|00004fc0| 47 45 3a 20 53 65 6e 74 | 20 62 79 20 70 72 65 76 |GE: Sent| by prev|
|00004fd0| 69 6f 75 73 2d 70 61 67 | 65 20 6b 65 79 5c 3e 20 |ious-pag|e key\> |
|00004fe0| 53 54 41 42 3a 20 53 65 | 6e 74 20 62 79 20 73 65 |STAB: Se|nt by se|
|00004ff0| 74 2d 74 61 62 20 6b 65 | 79 20 20 5c 5c 0a 20 20 |t-tab ke|y \\. |
|00005000| 20 20 43 54 41 42 3a 20 | 53 65 6e 74 20 62 79 20 | CTAB: |Sent by |
|00005010| 63 6c 65 61 72 2d 74 61 | 62 20 6b 65 79 09 5c 3e |clear-ta|b key.\>|
|00005020| 20 43 41 54 41 42 3a 20 | 53 65 6e 74 20 62 79 20 | CATAB: |Sent by |
|00005030| 63 6c 65 61 72 2d 61 6c | 6c 2d 74 61 62 73 20 6b |clear-al|l-tabs k|
|00005040| 65 79 2e 20 20 5c 5c 0a | 20 20 20 20 45 4e 54 45 |ey. \\.| ENTE|
|00005050| 52 3a 20 45 6e 74 65 72 | 2f 73 65 6e 64 20 09 09 |R: Enter|/send ..|
|00005060| 5c 3e 20 53 52 45 53 45 | 54 3a 20 73 6f 66 74 20 |\> SRESE|T: soft |
|00005070| 28 70 61 72 74 69 61 6c | 29 20 72 65 73 65 74 20 |(partial|) reset |
|00005080| 5c 5c 0a 20 20 20 20 52 | 45 53 45 54 3a 20 72 65 |\\. R|ESET: re|
|00005090| 73 65 74 20 6f 72 20 68 | 61 72 64 20 72 65 73 65 |set or h|ard rese|
|000050a0| 74 20 09 5c 3e 20 50 52 | 49 4e 54 3a 20 70 72 69 |t .\> PR|INT: pri|
|000050b0| 6e 74 20 6f 72 20 63 6f | 70 79 20 20 5c 5c 0a 20 |nt or co|py \\. |
|000050c0| 20 20 20 4c 4c 3a 20 53 | 65 6e 74 20 62 79 20 68 | LL: S|ent by h|
|000050d0| 6f 6d 65 2d 64 6f 77 6e | 20 6b 65 79 20 09 5c 3e |ome-down| key .\>|
|000050e0| 20 41 31 3a 20 55 70 70 | 65 72 20 6c 65 66 74 20 | A1: Upp|er left |
|000050f0| 6f 66 20 6b 65 79 70 61 | 64 20 20 5c 5c 0a 20 20 |of keypa|d \\. |
|00005100| 20 20 41 33 3a 20 55 70 | 70 65 72 20 72 69 67 68 | A3: Up|per righ|
|00005110| 74 20 6f 66 20 6b 65 79 | 70 61 64 20 09 5c 3e 20 |t of key|pad .\> |
|00005120| 42 32 3a 20 43 65 6e 74 | 65 72 20 6f 66 20 6b 65 |B2: Cent|er of ke|
|00005130| 79 70 61 64 20 20 5c 5c | 0a 20 20 20 20 43 31 3a |ypad \\|. C1:|
|00005140| 20 4c 6f 77 65 72 20 6c | 65 66 74 20 6f 66 20 6b | Lower l|eft of k|
|00005150| 65 79 70 61 64 20 09 5c | 3e 20 43 33 3a 20 4c 6f |eypad .\|> C3: Lo|
|00005160| 77 65 72 20 72 69 67 68 | 74 20 6f 66 20 6b 65 79 |wer righ|t of key|
|00005170| 70 61 64 20 20 5c 5c 0a | 20 20 20 20 42 54 41 42 |pad \\.| BTAB|
|00005180| 3a 20 42 61 63 6b 20 74 | 61 62 20 6b 65 79 20 09 |: Back t|ab key .|
|00005190| 09 5c 3e 20 42 45 47 3a | 20 62 65 67 28 69 6e 6e |.\> BEG:| beg(inn|
|000051a0| 69 6e 67 29 20 6b 65 79 | 20 20 5c 5c 0a 20 20 20 |ing) key| \\. |
|000051b0| 20 43 41 4e 43 45 4c 3a | 20 63 61 6e 63 65 6c 20 | CANCEL:| cancel |
|000051c0| 6b 65 79 20 09 09 5c 3e | 20 43 4c 4f 53 45 3a 20 |key ..\>| CLOSE: |
|000051d0| 63 6c 6f 73 65 20 6b 65 | 79 20 20 5c 5c 0a 20 20 |close ke|y \\. |
|000051e0| 20 20 43 4f 4d 4d 41 4e | 44 3a 20 63 6d 64 20 28 | COMMAN|D: cmd (|
|000051f0| 63 6f 6d 6d 61 6e 64 29 | 20 6b 65 79 20 09 5c 3e |command)| key .\>|
|00005200| 20 43 4f 50 59 3a 20 63 | 6f 70 79 20 6b 65 79 20 | COPY: c|opy key |
|00005210| 20 5c 5c 0a 20 20 20 20 | 43 52 45 41 54 45 3a 20 | \\. |CREATE: |
|00005220| 63 72 65 61 74 65 20 6b | 65 79 20 09 09 5c 3e 20 |create k|ey ..\> |
|00005230| 45 4e 44 3a 20 65 6e 64 | 20 6b 65 79 20 20 5c 5c |END: end| key \\|
|00005240| 0a 20 20 20 20 45 58 49 | 54 3a 20 65 78 69 74 20 |. EXI|T: exit |
|00005250| 6b 65 79 20 09 09 5c 3e | 20 46 49 4e 44 3a 20 66 |key ..\>| FIND: f|
|00005260| 69 6e 64 20 6b 65 79 20 | 20 5c 5c 0a 20 20 20 20 |ind key | \\. |
|00005270| 48 45 4c 50 3a 20 68 65 | 6c 70 20 6b 65 79 20 09 |HELP: he|lp key .|
|00005280| 09 5c 3e 20 4d 41 52 4b | 3a 20 6d 61 72 6b 20 6b |.\> MARK|: mark k|
|00005290| 65 79 20 20 5c 5c 0a 20 | 20 20 20 4d 45 53 53 41 |ey \\. | MESSA|
|000052a0| 47 45 3a 20 6d 65 73 73 | 61 67 65 20 6b 65 79 20 |GE: mess|age key |
|000052b0| 09 5c 3e 20 4d 4f 56 45 | 3a 20 6d 6f 76 65 20 6b |.\> MOVE|: move k|
|000052c0| 65 79 20 20 5c 5c 0a 20 | 20 20 20 4f 50 54 49 4f |ey \\. | OPTIO|
|000052d0| 4e 53 3a 20 6f 70 74 69 | 6f 6e 73 20 6b 65 79 20 |NS: opti|ons key |
|000052e0| 09 5c 3e 20 50 52 45 56 | 49 4f 55 53 3a 20 70 72 |.\> PREV|IOUS: pr|
|000052f0| 65 76 69 6f 75 73 20 6f | 62 6a 65 63 74 20 6b 65 |evious o|bject ke|
|00005300| 79 20 20 5c 5c 0a 20 20 | 20 20 52 45 44 4f 3a 20 |y \\. | REDO: |
|00005310| 72 65 64 6f 20 6b 65 79 | 20 09 09 5c 3e 20 52 45 |redo key| ..\> RE|
|00005320| 46 45 52 45 4e 43 45 3a | 20 72 65 66 28 65 72 65 |FERENCE:| ref(ere|
|00005330| 6e 63 65 29 20 6b 65 79 | 20 20 5c 5c 0a 20 20 20 |nce) key| \\. |
|00005340| 20 52 45 46 52 45 53 48 | 3a 20 72 65 66 72 65 73 | REFRESH|: refres|
|00005350| 68 20 6b 65 79 20 09 5c | 3e 20 52 45 50 4c 41 43 |h key .\|> REPLAC|
|00005360| 45 3a 20 72 65 70 6c 61 | 63 65 20 6b 65 79 20 20 |E: repla|ce key |
|00005370| 5c 5c 0a 20 20 20 20 52 | 45 53 54 41 52 54 3a 20 |\\. R|ESTART: |
|00005380| 72 65 73 74 61 72 74 20 | 6b 65 79 20 09 5c 3e 20 |restart |key .\> |
|00005390| 52 45 53 55 4d 45 3a 20 | 72 65 73 75 6d 65 20 6b |RESUME: |resume k|
|000053a0| 65 79 20 20 5c 5c 0a 20 | 20 20 20 53 41 56 45 3a |ey \\. | SAVE:|
|000053b0| 20 73 61 76 65 20 6b 65 | 79 20 09 09 5c 3e 20 53 | save ke|y ..\> S|
|000053c0| 42 45 47 3a 20 73 68 69 | 66 74 65 64 20 62 65 67 |BEG: shi|fted beg|
|000053d0| 69 6e 6e 69 6e 67 20 6b | 65 79 20 20 5c 5c 0a 20 |inning k|ey \\. |
|000053e0| 20 20 20 53 43 41 4e 43 | 45 4c 3a 20 73 68 69 66 | SCANC|EL: shif|
|000053f0| 74 65 64 20 63 61 6e 63 | 65 6c 20 6b 65 79 20 5c |ted canc|el key \|
|00005400| 3e 20 53 43 4f 4d 4d 41 | 4e 44 3a 20 73 68 69 66 |> SCOMMA|ND: shif|
|00005410| 74 65 64 20 63 6f 6d 6d | 61 6e 64 20 6b 65 79 20 |ted comm|and key |
|00005420| 20 5c 5c 0a 20 20 20 20 | 53 43 4f 50 59 3a 20 73 | \\. |SCOPY: s|
|00005430| 68 69 66 74 65 64 20 63 | 6f 70 79 20 6b 65 79 20 |hifted c|opy key |
|00005440| 09 5c 3e 20 53 43 52 45 | 41 54 45 3a 20 73 68 69 |.\> SCRE|ATE: shi|
|00005450| 66 74 65 64 20 63 72 65 | 61 74 65 20 6b 65 79 20 |fted cre|ate key |
|00005460| 20 5c 5c 0a 20 20 20 20 | 53 44 43 3a 20 73 68 69 | \\. |SDC: shi|
|00005470| 66 74 65 64 20 64 65 6c | 65 74 65 20 63 68 61 72 |fted del|ete char|
|00005480| 20 6b 65 79 5c 3e 20 53 | 44 4c 3a 20 73 68 69 66 | key\> S|DL: shif|
|00005490| 74 65 64 20 64 65 6c 65 | 74 65 20 6c 69 6e 65 20 |ted dele|te line |
|000054a0| 6b 65 79 20 20 5c 5c 0a | 20 20 20 20 53 45 4c 45 |key \\.| SELE|
|000054b0| 43 54 3a 20 73 65 6c 65 | 63 74 20 6b 65 79 20 09 |CT: sele|ct key .|
|000054c0| 09 5c 3e 20 53 45 4e 44 | 3a 20 73 68 69 66 74 65 |.\> SEND|: shifte|
|000054d0| 64 20 65 6e 64 20 6b 65 | 79 20 20 5c 5c 0a 20 20 |d end ke|y \\. |
|000054e0| 20 20 53 45 4f 4c 3a 20 | 73 68 69 66 74 65 64 20 | SEOL: |shifted |
|000054f0| 63 6c 65 61 72 20 6c 69 | 6e 65 20 6b 65 79 5c 3e |clear li|ne key\>|
|00005500| 20 53 45 58 49 54 3a 20 | 73 68 69 66 74 65 64 20 | SEXIT: |shifted |
|00005510| 65 78 69 74 20 6b 65 79 | 20 20 5c 5c 0a 20 20 20 |exit key| \\. |
|00005520| 20 53 46 49 4e 44 3a 20 | 73 68 69 66 74 65 64 20 | SFIND: |shifted |
|00005530| 66 69 6e 64 20 6b 65 79 | 20 09 5c 3e 20 53 48 45 |find key| .\> SHE|
|00005540| 4c 50 3a 20 73 68 69 66 | 74 65 64 20 68 65 6c 70 |LP: shif|ted help|
|00005550| 20 6b 65 79 20 20 5c 5c | 0a 20 20 20 20 53 48 4f | key \\|. SHO|
|00005560| 4d 45 3a 20 73 68 69 66 | 74 65 64 20 68 6f 6d 65 |ME: shif|ted home|
|00005570| 20 6b 65 79 20 09 5c 3e | 20 53 49 43 3a 20 73 68 | key .\>| SIC: sh|
|00005580| 69 66 74 65 64 20 69 6e | 70 75 74 20 6b 65 79 20 |ifted in|put key |
|00005590| 20 5c 5c 0a 20 20 20 20 | 53 4c 45 46 54 3a 20 73 | \\. |SLEFT: s|
|000055a0| 68 69 66 74 65 64 20 6c | 65 66 74 20 61 72 72 6f |hifted l|eft arro|
|000055b0| 77 20 6b 65 79 5c 3e 20 | 53 4d 45 53 53 41 47 45 |w key\> |SMESSAGE|
|000055c0| 3a 20 73 68 69 66 74 65 | 64 20 6d 65 73 73 61 67 |: shifte|d messag|
|000055d0| 65 20 6b 65 79 20 20 5c | 5c 0a 20 20 20 20 53 4d |e key \|\. SM|
|000055e0| 4f 56 45 3a 20 73 68 69 | 66 74 65 64 20 6d 6f 76 |OVE: shi|fted mov|
|000055f0| 65 20 6b 65 79 20 09 5c | 3e 20 53 4e 45 58 54 3a |e key .\|> SNEXT:|
|00005600| 20 73 68 69 66 74 65 64 | 20 6e 65 78 74 20 6b 65 | shifted| next ke|
|00005610| 79 20 20 5c 5c 0a 20 20 | 20 20 53 4f 50 54 49 4f |y \\. | SOPTIO|
|00005620| 4e 53 3a 20 73 68 69 66 | 74 65 64 20 6f 70 74 69 |NS: shif|ted opti|
|00005630| 6f 6e 73 20 6b 65 79 20 | 5c 3e 20 53 50 52 45 56 |ons key |\> SPREV|
|00005640| 49 4f 55 53 3a 20 73 68 | 69 66 74 65 64 20 70 72 |IOUS: sh|ifted pr|
|00005650| 65 76 20 6b 65 79 20 20 | 5c 5c 0a 20 20 20 20 53 |ev key |\\. S|
|00005660| 50 52 49 4e 54 3a 20 73 | 68 69 66 74 65 64 20 70 |PRINT: s|hifted p|
|00005670| 72 69 6e 74 20 6b 65 79 | 20 09 5c 3e 20 53 52 45 |rint key| .\> SRE|
|00005680| 44 4f 3a 20 73 68 69 66 | 74 65 64 20 72 65 64 6f |DO: shif|ted redo|
|00005690| 20 6b 65 79 20 20 5c 5c | 0a 20 20 20 20 52 45 50 | key \\|. REP|
|000056a0| 4c 41 43 45 3a 20 73 68 | 69 66 74 65 64 20 72 65 |LACE: sh|ifted re|
|000056b0| 70 6c 61 63 65 20 6b 65 | 79 5c 3e 20 4e 45 58 54 |place ke|y\> NEXT|
|000056c0| 3a 20 6e 65 78 74 20 6f | 62 6a 65 63 74 20 6b 65 |: next o|bject ke|
|000056d0| 79 20 5c 5c 0a 20 20 20 | 20 53 52 49 47 48 54 3a |y \\. | SRIGHT:|
|000056e0| 20 73 68 69 66 74 65 64 | 20 72 69 67 68 74 20 61 | shifted| right a|
|000056f0| 72 72 6f 77 09 5c 3e 20 | 53 52 53 55 4d 45 3a 20 |rrow.\> |SRSUME: |
|00005700| 73 68 69 66 74 65 64 20 | 72 65 73 75 6d 65 20 6b |shifted |resume k|
|00005710| 65 79 20 5c 5c 0a 20 20 | 20 20 53 53 41 56 45 3a |ey \\. | SSAVE:|
|00005720| 20 73 68 69 66 74 65 64 | 20 73 61 76 65 20 6b 65 | shifted| save ke|
|00005730| 79 09 5c 3e 20 53 53 55 | 53 50 45 4e 44 3a 20 73 |y.\> SSU|SPEND: s|
|00005740| 68 69 66 74 65 64 20 73 | 75 73 70 65 6e 64 20 6b |hifted s|uspend k|
|00005750| 65 79 20 5c 5c 0a 20 20 | 20 20 53 55 4e 44 4f 3a |ey \\. | SUNDO:|
|00005760| 20 73 68 69 66 74 65 64 | 20 75 6e 64 6f 20 6b 65 | shifted| undo ke|
|00005770| 79 09 5c 3e 20 53 55 53 | 50 45 4e 44 3a 20 73 75 |y.\> SUS|PEND: su|
|00005780| 73 70 65 6e 64 20 6b 65 | 79 20 5c 5c 0a 20 20 20 |spend ke|y \\. |
|00005790| 20 55 4e 44 4f 3a 20 55 | 6e 64 6f 20 6b 65 79 09 | UNDO: U|ndo key.|
|000057a0| 09 5c 3e 20 4d 4f 55 53 | 45 3a 20 4d 6f 75 73 65 |.\> MOUS|E: Mouse|
|000057b0| 20 65 76 65 6e 74 20 5c | 5c 0a 20 20 20 20 4f 50 | event \|\. OP|
|000057c0| 45 4e 3a 20 6f 70 65 6e | 20 6b 65 79 09 09 5c 3e |EN: open| key..\>|
|000057d0| 20 41 4e 59 3a 20 41 6e | 79 20 6b 65 79 20 5c 5c | ANY: An|y key \\|
|000057e0| 0a 20 20 20 20 41 41 20 | 2d 20 5a 5a 3a 20 43 61 |. AA |- ZZ: Ca|
|000057f0| 70 69 74 61 6c 20 6c 65 | 74 74 65 72 73 09 5c 3e |pital le|tters.\>|
|00005800| 20 61 20 2d 20 7a 3a 20 | 6c 6f 77 65 72 20 63 61 | a - z: |lower ca|
|00005810| 73 65 20 63 68 61 72 61 | 63 74 65 72 73 2e 20 5c |se chara|cters. \|
|00005820| 5c 0a 20 20 20 20 5c 65 | 6e 64 7b 74 61 62 62 69 |\. \e|nd{tabbi|
|00005830| 6e 67 7d 0a 09 0a 5c 6e | 65 77 70 61 67 65 0a 5c |ng}...\n|ewpage.\|
|00005840| 74 61 62 6c 65 6f 66 63 | 6f 6e 74 65 6e 74 73 0a |tableofc|ontents.|
|00005850| 0a 5c 65 6e 64 7b 64 6f | 63 75 6d 65 6e 74 7d 0a |.\end{do|cument}.|
+--------+-------------------------+-------------------------+--------+--------+